MAJLIS ARTS AND SCIENCE COLLEGE, PURAMANNUR
DEPARTMENT OF COMPUTER SCIENCE
DATA STRUCTURES USING C (3rd Semester Online Study Material)
B.Sc Computer Science & BCA
(Questions and answers based on First Module)
1. Complexity of binary search algorithm is -------
Ans: n logn
2. Logical or mathematical model of particular organization of data is called ---------
Ans: data structure
3. Define data structure?
Ans: Logical or mathematical model of particular organization of data
4. What is a data?
Ans: a single value or a set of values
5. Briefly describe the notation of the space time tradeoff of algorithm.
Ans:
Time complexity is a function describing the amount of time an algorithm takes in terms of the amount
of input to the algorithm.
Space complexity is a function describing the amount of memory (space) an algorithm takes in terms of
the amount of input to the algorithm.
Big O notation is the language we use for talking about how long an algorithm takes to run. Order of
magnitude is often called Big-O notation (for âorderâ) and written as O(f(n)).
Common Functions for Big-O
F(n) Name