

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A problem set for the unified engineering course during the spring term 2003. The problem set includes questions related to minimum spanning trees using prim's and kruskal's algorithm, computation complexity of bubble sort, insertion into singly linked lists, and designing and implementing an ada95 package for reading and sorting integers. The document also includes instructions for turning in the assignments.
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Unified EngineeringUnified Engineering Spring Term 2003Spring Term 2003
The problems in this problem set cover lectures C7, C8, C9 and C
a. Inserting a node into an unsorted singly linked list b. Inserting a node into a sorted singly linked list
Show the steps in the complexity computation based on the algorithm and justify your answer by using a diagram of the insertion operation.
a. Design an Ada95 Package to: i. Read in N integers from an input file into an array. (N is user defined <=50) ii. Sort the array in ascending order iii. Perform binary search on the array.
b. Write a program to test your package that will
Turn in an electronic copy of your Package and test program and a hard copy of your algorithm and code listing. Assume: Input file name is my_input.txt
Turn in an electronic copy of your code and a hard copy of your algorithm and code listing. Assume: Input file name is my_input.txt