Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

PARUL UNIVERSITY

Course code: 203105205


Course title: Data Structures and Algorithms
Assignment-1
1) Define the following terms
a. Data Structures
b. Algorithm
c. Primitive and Non-Primitive Data Types
d. Linear and Non-Linear Data Structures
e. Stable Sorting Algorithms
f. In-place Sorting Algorithms

2) Write short note on performance analysis and performance measurement of an algorithm.

3) Why do we use asymptotic notations in the study of algorithms? Briefly describe the commonly
used asymptotic notations.

4) Write down precondition and algorithm of binary search method.

5) Write a selection sort algorithm and also discuss its efficiency.

6) Write an algorithm for Insertion sort method. Explain each step with an example.

7) Sort the following values using Bubble Sort. Give the result after pass-3.
80 60 90 50 40 30 10 100 20 10

8) Sort the following values using Quick Sort and Heap Sort. (Show the step-by-step process)
10 80 30 90 40 50 70

You might also like