Assignment 1 - Fall

You might also like

Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 2

Department of Software Engineering

Government College University, Faisalabad.


Assignment 1, September 2023
Class: BS(SE) Semester: 3rd
Course Title: Data Structure and Algorithms Course Code: CSI-401
Instructor: Dr. M. Awais Credit Hour: 04(3-1)

NOTE: Submission date 25-09-23

Q.1. Consider the data in Fig 1-15, which gives the different flights of an airline. Discuss different

ways of storing the data so as to decrease the time in executing in the following:

a) Find the origin and destination of a flight, given the flight number.

b) Given city A and city B, find whether there is a fight from A to B, and if there is, find its flight

number

(a)
NUMBER Origin Destination

701 BASTON CHICOGO

702 CHICOGO BASTON

705 PHILADEPHIA CHICOGO

708 CHICOGO MILAMI

711 BASTON PHILADEPHIA

712 PHILADEPHIA BASTON

713 PHILADEPHIA ATLANTA

715 ATLANTA MILAMI

717 PHILADEPHIA MILAMI

718 MILAMI PHILADEPHIA

(b)

You might also like