Unit 1: Introduction - Subjective Questions

ECAP538 • Practice Questions with Detailed Answers

20 questions

1

Define elementary data structures. Explain the characteristics and common operations of arrays, linked lists, stacks, and queues.

2

Compare arrays and linked lists with respect to memory organization, access, insertion, and deletion.

3

Explain the working principles of stacks and queues. Give two algorithmic applications of each.

4

Describe trees and graphs as elementary non-linear data structures. How are they different?

5

What is a computational model? Explain the Random Access Machine model and its assumptions.

6

Compare the RAM model and the comparison model of computation. Why can the selected model affect algorithm analysis?

7

Explain how input size and elementary operation counting are used to analyze an algorithm.

8

Distinguish between best-case, average-case, and worst-case behavior of an algorithm.

9

Analyze the best-case, average-case, and worst-case time complexities of linear search in an array of elements.

10

Explain the meanings of Big O, Big Omega, and Big Theta notations. How are they related?

11

State the formal definition of Big O notation and prove that .

12

Arrange the following growth rates in increasing asymptotic order and justify your answer: , , , , , , and .

13

Why are constants and lower-order terms ignored in asymptotic analysis? Simplify .

14

Define recursion. Explain the roles of the base case and recursive case with a suitable example.

15

Compare recursive and iterative algorithms in terms of clarity, time, and space. Illustrate using factorial computation.

16

What is a recurrence relation? Describe the steps for constructing a recurrence for a recursive algorithm.

17

Solve the recurrence with using expansion.

18

Derive and solve the recurrence relation for recursive binary search.

19

Derive and solve the recurrence for merge sort using a recursion-tree argument.

20

State the Master Theorem and apply it to solve: (a) , (b) , and (c) .