Skip to content

BCS401 · 2022 · CSE · Semester 4

Analysis & Design of Algorithms

Back to subjects

Review status & sources

Similar question wording is grouped and ranked by the number of distinct exam sessions. Groups with the same count are ordered by their extracted text. Some subjects have only one session. Paper references show the PDF page and extracted question number when available.

Module 1

Explain asymptotic notations with example. Give the general plan for analyzing the efficiency of the recursive algorithm. Develop recursive algorithm for computing factorial of a positive number. Calculate the efficiency in terms of order of growth.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
2 exam sessions
  • June-July-2024 · PDF page 1
  • June-July-2025 · PDF page 1

Define algorithm Explain asymptotic notations Bigh oh, Big omega and Big theta notations.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2025 · PDF page 1

Develop an algorithm to search an element in an array using sequential search. Calculate the best case, worst case and average case efficiency of this algorithm.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2024 · PDF page 1
Show 2 Backup Questions

If ti (n) €O(gi(n)) and t2(n) eO(g2(n)) then show that t, (n) + t2(n) є o(max { g:(n), g2(n)} )

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2025 · PDF page 1

What is an algorithm? Explain the fundamentals of algorithmic problem solving

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2024 · PDF page 1

Module 2

Explain Strassen's Matrix multiplication and derive its time complexity.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
2 exam sessions
  • June-July-2025 · PDF page 1
  • June-July-2024 · PDF page 1

Define topological sorting. List the two approaches of topological sorting and illustrate with examples.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2024 · PDF page 1

Design an algorithm for insertion algorithm and obtain its time complexity. Apply insertion sort on these elements. • 89,45,68, 90,29,

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2025 · PDF page 1
Show 2 Backup Questions

Design an algorithm for Quick sort. Apply quick sort on these elements. 5,3,1,9,8,2,4,7.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2025 · PDF page 1

Distinguish between decrease & conquer and divide & conquer algorithm design techniques with block diagram. Develop insertion sort algorithm to sort a list of integers and estimate the efficiency.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2024 · PDF page 1

Module 3

Define 2-3 tree. Give the worst case efficiency of operations on 2-3 tree. Build 2-3 tree for the list of keys 9, 5, 8, 3, 2, 4, 7 by indicating each step of key insertion and node splits. Design Horspool algorithm for string matching. Apply this algorithm to find the pattern BARBER in the text: JIM_SAW_ME_IN_A_BARBERSHOP

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2024 · PDF page 1

Define AVL tree with an example. Give worst case efficiency of operations on AVL tree. Construct an AVL tree of the list of keys: 5, 6, 8, 3, 2, 4, indicating cach step of key insertion and rotation. Define Heap. Explain the bottom-up heap construction algorithm. Apply heap sort to sort the list of numbers 2, 9, 7, 6, 5, 8 in ascending order using array representation.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2024 · PDF page 1

Define AVL trees. Explain its four rotation types.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2025 · PDF page 1
Show 2 Backup Questions

Define heap. Explain the properties of heap along with its representation.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2025 · PDF page 1

Design an algorithm for Heap sort. Construct bottom - up heap for the list 15, 19, 10, 7, 17, 16.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2025 · PDF page 1

Module 4

4 distinct question groups available in the collected papers. More exam sessions are being collected.

Apply Dijkstra's algorithm to find the single source shortest path for given graph [Fig.Q7(a)] by considering 's' as source vertex. Illustrate each step. 2 Fig.Q7(a)

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1Original question scan, part 2
2 exam sessions
  • June-July-2024 · PDF page 1
  • June-July-2025 · PDF page 2

Construct Huffman Tree and resulting code for the following: Character D Probability 0.4 | 0.1 | 0.2 | 0.15 | 0.15 (i) Encode the text : ABACABAD (ii) Decode the text : 100010111001010

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
2 exam sessions
  • June-July-2024 · PDF page 2
  • June-July-2025 · PDF page 2

Construct minimum cost spanning tree using Kruskal's algorithm for the following graph. 2 6 Fig. 7(a)

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
2 exam sessions
  • June-July-2025 · PDF page 2
  • June-July-2024 · PDF page 2
Show 1 Backup Question

Define transitive closure of a graph. Apply Warshall's algorithm to compute transitive closure of a directed graph. Fig.8 (b)

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
2 exam sessions
  • June-July-2025 · PDF page 2
  • June-July-2024 · PDF page 2

Module 5

Solve the following instance of the knapsack problem by the branch-and- bound algorithm. Construct state-space tree. Item Weight Value 4 $ 7 $ 3 5 $ 4 3 $ The knapsack's capacity Wis 10.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
2 exam sessions
  • June-July-2024 · PDF page 2
  • June-July-2025 · PDF page 3

Differentiate between Branch and Bound technique and Backtracking. Apply backtracking to solve the following instance of subset-sum problem S = {3, 5, 6, 7} and d = 15. Construct a state space tree.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2024 · PDF page 2

Explain greedy: approximation algorithm to solve discrete knapsack problem.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2024 · PDF page 2
Show 2 Backup Questions

Explain n-Queen's problem with example using backtracking approach.

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2024 · PDF page 2

Explain the following with examples. 1) P problem i1) NP problem ii) NP-Complete problem iv) NP - Hard problem

OCR transcription · Wording, symbols, or figures may be incomplete.

View question scan & diagramsOriginal question scan, part 1
1 exam session
  • June-July-2025 · PDF page 3