Professional Documents
Culture Documents
Subject code & Title: 15IT604 Design and Analysis of AlgorithmsUnit/Lesson No: III-1
Prerequisite Knowledge:
To be used by teacher as a teaching learning process guideline for classrooms and laboratory
1. Topic for Learning through evocation:
To be used by teacher as a teaching learning process guideline for classrooms and laboratory
To be used by teacher as a teaching learning process guideline for classrooms and laboratory
2. Topic Introduction:
2.3. Specific Objectives (Maximum 4): Include the STEM concept for each specific objective within brackets as
(S) (T) (E) (M).
1. Compare the various sorting techniques with its input size. (T)
2. Compare the linear search and binary search with its time complexity. (T)
3. Compare the various sorting techniques with its time complexity. (T)
To be used by teacher as a teaching learning process guideline for classrooms and laboratory
Taxonomy of Objectives
Knowledge Dimension The Cognitive Process Dimension
Remember Understand Apply Analyse Evaluate Create
A. Factual Knowledge
B. Conceptual
Knowledge
C. Procedural 1,2,3
Knowledge
D. Meta Cognitive
Knowledge
Explanatory Notes: (This is not the notes for the topic. It is an explanatory notes to remember the reason for doing a
particular mapping in the table above)
A. Factual Knowledge: It is a knowledge that contains the basic elements students must know if they are to be acquainted with the discipline or to
solve any of the problems in it.
B. Conceptual Knowledge: It includes knowledge of categories and classifications and the relationships between and among them.
C. Procedural Knowledge:It is the knowledge that takes the form of series of logical steps to be followed. It is more skill oriented and can include
algorithms, techniques and methods.
D. Meta Cognitive Knowledge:It is the knowledge of one’s own cognition.
3. Discussion:
The students will be asked to discuss the relevant topic among their team/other team/Faculty. The students
those who have not taken part will be noted and kindle them to do.
To be used by teacher as a teaching learning process guideline for classrooms and laboratory
4. Mind Map:(It must revolve around the concept)
Sorting Definition
Searching
&
Searching
Sorting
Binary Search
Linear Search
Mergesort
selection
sort and
bubble sort Quicksort
5. Summary:
Four different sorting algorithms: two O(N2) sorts (selection sort and bubble sort), and
two O(NlogN) sorts (quicksort and merge sort). Each sorting algorithm has its advantages
and disadvantages:
Selection sort’s advantage is that the number of swaps is O(N), since we perform at most
one data swap per pass through the algorithm. Its disadvantage is that it does not stop
early if the list is sorted; it looks at every element in the list in turn.
Bubble sort’s advantage is that it stops once it determines that the list is sorted. Its
disadvantage is that it is O(N2) in both swaps and comparisons. For this reason, bubble
sort is actually the least efficient sorting method.
To be used by teacher as a teaching learning process guideline for classrooms and laboratory
Quicksort is the fastest sort: it is O(NlogN) in both the number of comparisons and the
number of swaps. The disadvantages of quicksort are that the algorithm is a bit tricky to
understand, and if we continually select poor pivots then the algorithm can approach
O(N2) in the worst case.
Merge sort is as fast as quicksort: it is O(NlogN) in both swaps and comparisons. The
disadvantage of merge sort is that it requires more copying of data from temporary lists
back to the “full” list, which slows down the algorithm a bit.
a) O(n)
b) O(nlogn)
c) O(n2)
d) O(n2logn)
2. The time complexity of a quick sort algorithm which makes use of median, found by an O(n)
algorithm, as pivot element is
a) O(n2)
b) O(nlogn)
c) O(nloglogn)
d) O(n)
a) O(logn)
b) O(n)
c) O(nlogn)
d) O(n2)
To be used by teacher as a teaching learning process guideline for classrooms and laboratory
4. If the given input array is sorted or nearly sorted, which of the following algorithm gives the best
performance?
a) Insertion sort
b) Selection sort
c) Quick sort
d) Merge sort
5. Consider the situation in which assignment operation is very costly. Which of the following sorting
algorithm should be performed so that the number of assignment operations is minimized in
general?
a) Insertion sort
b) Selection sort
c) Heap sort
d) Merge sort
a) O(n)
b) O(nlogn)
c) O(n2)
d) O(n2logn)
7. The lower bound on the number of comparisons performed by comparison-based sorting algorithm
is
a) Ω (1)
b) Ω (n)
c) Ω (nlogn)
d) Ω (n2)
To be used by teacher as a teaching learning process guideline for classrooms and laboratory
A. sorted linked list
B. sorted binary trees
C. sorted linear array
D. pointer array
8. References: (Books/Periodicals/Journals)
To be used by teacher as a teaching learning process guideline for classrooms and laboratory