Lovely Professional University Home Work: #2 School: LIE-LEET
Lovely Professional University Home Work: #2 School: LIE-LEET
HOME WORK: #2
PART A
Q2. Write a pseudo code for a divide and conquer algorithm for
Sorting array using quick sort. Explain with an
example
Q3. Write an algorithm to sort a set of N natural numbers using insertion sort.
PART B
Q4. In which application of computer science the binary search algorithm will be more
efficient rather than linear search algorithm.
Q6. Compare and contrast the depth first search and birth first search. How do they fit
in to the decrease and conquer strategies.