Unit 1: Behaviour Analysis - Subjective Questions

CSE330 — Competitive Coding Approaches-Techniques • Practice Questions with Detailed Answers

20 questions

1

Define algorithm behaviour analysis. Why is it important in competitive coding?

2

Explain how mathematical limits can be used to compare the growth rates of two algorithms.

3

Distinguish between best-case, average-case, and worst-case complexity with a suitable example.

4

Describe the taxonomy of common worst-case time complexities and arrange them in increasing order of growth.

5

Define Big-O, Big-Omega, and Big-Theta notation. Explain the role of each notation in algorithm analysis.

6

Derive the time complexity of the following logic: an outer loop runs times, and for each value , an inner loop runs times.

7

Explain how the structure of loops influences an algorithm's time complexity. Discuss sequential, nested, and logarithmic loops.

8

What is meant by the effectiveness and efficiency of an algorithm? How do these qualities differ?

9

Describe the main factors used to evaluate the practical efficiency of an algorithm in competitive programming.

10

Explain how the time complexity of a recursive algorithm can be measured using recurrence relations. Analyse binary search as an example.

11

Define space complexity and distinguish between total space and auxiliary space.

12

Compare the time and auxiliary-space complexities of merge sort and an in-place quadratic sorting algorithm such as selection sort.

13

What is the time-space trade-off? Explain it using a suitable competitive-programming example.

14

Explain how memoization changes the behaviour of the naive recursive Fibonacci algorithm in terms of time and space complexity.

15

Why are constant factors and lower-order terms ignored in asymptotic analysis? State when constant factors may still matter.

16

Derive the complexity of an algorithm that repeatedly doubles a variable from until it exceeds $n`, and performs an $O(n)$ scan during each iteration.

17

Explain why worst-case analysis is commonly preferred in competitive coding. Mention its limitations.

18

Compare an algorithm with an algorithm. Can the quadratic algorithm ever be faster in practice?

19

Given an input limit of , evaluate the likely suitability of algorithms with complexities , , , and .

20

Describe a systematic approach for selecting an algorithm under both time and memory constraints.