Notice: Due to an ongoing migration of our storage and publishing system, material requested since last month will not be uploaded for the time being, and new requests are paused. All existing notes remain available.

Unit 1 subjective questions Introduction

ECAP538 20 questions with model answers. Write yours first, then compare.

Read the notes Practice MCQs
  1. Question 1 of 20

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

  2. Question 2 of 20

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

  3. Question 3 of 20

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

  4. Question 4 of 20

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

  5. Question 5 of 20

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

  6. Question 6 of 20

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

  7. Question 7 of 20

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

  8. Question 8 of 20

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

  9. Question 9 of 20

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

  10. Question 10 of 20

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

  11. Question 11 of 20

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

  12. Question 12 of 20

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

  13. Question 13 of 20

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

  14. Question 14 of 20

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

  15. Question 15 of 20

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

  16. Question 16 of 20

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

  17. Question 17 of 20

    Solve the recurrence with using expansion.

  18. Question 18 of 20

    Derive and solve the recurrence relation for recursive binary search.

  19. Question 19 of 20

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

  20. Question 20 of 20

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

That's unit 1

Long answers stick best when they're tested again soon. Run the MCQs on this unit, then come back to the questions you found hardest.