(SEM V) THEORY EXAMINATION 2023-24 DESIGN AND ANALYSIS OF ALGORITHM

B.Tech Engineering 0 downloads
₹29.00

Total Marks: 100

Time: 3 hours

Structure:

Section A: 10 short answer questions (all compulsory) – 2 marks each

Section B: Any 3 questions – 10 marks each

Q3–Q7: Each has two alternatives (a or b) – attempt one part from each

SECTION A – Very Short Questions (2 × 10 = 20)

Attempt all:

a. What do you mean by algorithm? Write the characteristics of an algorithm.

b. Show that the equation is correct:

10n2+9=O(n2)10n^2 + 9 = O(n^2)10n2+9=O(n2)

c. Write a short note on Fibonacci Heap.

d. Explain Binary Search Tree.

e. Define fractional Knapsack problem.

f. Write the names of spanning tree algorithms with their time complexities.

g. Define the term “Graph Coloring”.

h. What do you mean by Activity Selection problem?

i. What do you mean by Boyer–Moore Algorithm?

j. Write a short note on Fast Fourier Transform (FFT).

SECTION B – Short/Medium Questions (Attempt any 3) (10 × 3 = 30)

a. Counting Sort
Sort the array using counting sort:

A={2,5,3,0,2,3,0,3}A = \{2, 5, 3, 0, 2, 3, 0, 3\}A={2,5,3,0,2,3,0,3}

b. Binomial Tree
Prove all four properties of a Binomial Tree.

c. Depth First Search (DFS)

Describe DFS with its algorithm.

Explain how DFS can be used to solve a problem (e.g., topological sort, connectivity).

d. Floyd–Warshall Algorithm
Apply Floyd–Warshall algorithm to construct all-pairs shortest paths for the weighted directed graph given in the figure on page 1 (a 5-vertex graph labeled a–e with positive and negative edge weights like 3, 2, −4, 1, 6, etc.). 

KCS503-DESIGN-AND-ANALYSIS-OF-A…

e. Short notes:

Randomized Algorithm

Approximation Algorithm

Question 3 – Sorting (Attempt any 1 part) (10 marks)

a. What is a stable sorting algorithm?

Which sorting algorithms you have studied are stable and which are unstable?

Give names with explanation.

b. Write the algorithm of Merge Sort and prove its worst-case time complexity.

Question 4 – Balanced Trees & B-Trees (Attempt any 1 part) (10 marks)

a. Red-Black Tree Insertion
Insert the following elements using the properties of RB tree:

61,58,51,32,39,2961, 58, 51, 32, 39, 2961,58,51,32,39,29

b. B-Tree
Explain B-Tree and its properties. Also write B-Tree deletion cases with example.

Question 5 – Dynamic Programming & Backtracking (Attempt any 1 part) (10 marks)

a. Determine a Longest Common Subsequence (LCS) of

X={A,B,C,B,D,A,B}X = \{A, B, C, B, D, A, B\}X={A,B,C,B,D,A,B} Y={B,D,C,A,B,A}Y = \{B, D, C, A, B, A\}Y={B,D,C,A,B,A}

b. Explain Backtracking. For the set

S={1,3,4,5},X=8S = \{1, 3, 4, 5\}, \quad X = 8S={1,3,4,5},X=8

solve the Subset Sum problem using a backtracking approach.

Question 6 – Graph Algorithms & Branch & Bound (Attempt any 1 part) (10 marks)

a. Write an algorithm for Dijkstra’s algorithm and implement it by taking any example graph (single-source shortest path with non-negative weights).

b. Apply Branch and Bound to solve the Travelling Salesman Problem (TSP) for the graph with the following cost matrix (shown as a 5×5 table on page 2, diagonal entries = ∞): 

KCS503-DESIGN-AND-ANALYSIS-OF-A…

[∞1713221813∞1624191518∞1628191315∞2128241918∞]\begin{bmatrix} \infty & 17 & 13 & 22 & 18 \\ 13 & \infty & 16 & 24 & 19 \\ 15 & 18 & \infty & 16 & 28 \\ 19 & 13 & 15 & \infty & 21 \\ 28 & 24 & 19 & 18 & \infty \end{bmatrix}​∞13151928​17∞181324​1316∞1519​222416∞18​18192821∞​​ 

Question 7 – Complexity Classes & String Matching (Attempt any 1 part) (10 marks)

a. Explain P, NP, NP-Hard and NP-Complete classes with suitable examples.

b. Explain the KMP matcher and also implement it by an algorithm for:

Pattern P=a,a,b,a,b,b,aP = a, a, b, a, b, b, aP=a,a,b,a,b,b,a

Text T=b,a,b,a,a,b,a,b,b,aT = b, a, b, a, a, b, a, b, b, aT=b,a,b,a,a,b,a,b,b,a

File Size
147.42 KB
Uploader
SuGanta International
⭐ Elite Educators Network

Meet Our Exceptional Teachers

Discover passionate educators who inspire, motivate, and transform learning experiences with their expertise and dedication

KISHAN KUMAR DUBEY

KISHAN KUMAR DUBEY

Sant Ravidas Nagar Bhadohi, Uttar Pradesh , Babusarai Market , 221314
5 Years
Years
₹10000+
Monthly
₹201-300
Per Hour

This is Kishan Kumar Dubey. I have done my schooling from CBSE, graduation from CSJMU, post graduati...

Swethavyas bakka

Swethavyas bakka

Hyderabad, Telangana , 500044
10 Years
Years
₹10000+
Monthly
₹501-600
Per Hour

I have 10+ years of experience in teaching maths physics and chemistry for 10th 11th 12th and interm...

Vijaya Lakshmi

Vijaya Lakshmi

Hyderabad, Telangana , New Nallakunta , 500044
30+ Years
Years
₹9001-10000
Monthly
₹501-600
Per Hour

I am an experienced teacher ,worked with many reputed institutions Mount Carmel Convent , Chandrapu...

Shifna sherin F

Shifna sherin F

Gudalur, Tamilnadu , Gudalur , 643212
5 Years
Years
₹6001-7000
Monthly
₹401-500
Per Hour

Hi, I’m Shifna Sherin! I believe that every student has the potential to excel in Math with the righ...

Divyank Gautam

Divyank Gautam

Pune, Maharashtra , Kothrud , 411052
3 Years
Years
Not Specified
Monthly
Not Specified
Per Hour

An IIT graduate having 8 years of experience teaching Maths. Passionate to understand student proble...

Explore Tutors In Your Location

Discover expert tutors in popular areas across India

Graphic Designing Classes Near Uttam Nagar – Turn Your Creativity into a Successful Career Uttam Nagar, Delhi
Dance Classes (Bollywood, Hip-Hop, Classical) Near Sector 129 Greater Noida – Learn, Express, and Stay Fit Through Dance Noida
Guitar Classes Near Central Noida Sector 5 – Learn Guitar with Professional Trainers B Block Sector 5, Noida
Economics Classes Near By Dwarka Mor Build Strong Conceptual Clarity & Score High Dwarka Mor, Delhi
Guitar Classes Near By Malviya Nagar Learn Guitar with Expert Trainers & Turn Your Passion into Skill in 2026 Malviya Nagar, Delhi
App Development Classes Near Noida Sector 100 – Learn Mobile App Development and Start Your Tech Career Sector 100, Noida
Spoken English Classes Near By New Friends Colony Improve Fluency, Boost Confidence & Unlock Career Growth in 2026 New Friends Colony, Delhi
History Classes Near Sector 91 Gurugram – Build Strong Understanding of the Past for a Better Future Gurugram
Competitive Exam Coaching Near Sector 95 Gurugram – Structured Preparation for Government & Entrance Exams Sector 95, Gurugram
History Classes Near By Dwarka Mor Build Strong Conceptual Understanding & Score High in Board Exams Dwarka Mor, Delhi
Spoken English Classes Near By Green Park Build Fluency, Confidence & Professional Communication Skills in 2026 Green Park, Delhi
Graphic Designing Classes Near Noida Sector 99 – Learn Creative Design and Build a Successful Career Noida
No Office Rent Business Setup Near By Uttam Nagar Start & Grow Your Business Without Paying High Office Rent in 2026 Uttam Nagar, Delhi
IELTS / TOEFL Coaching Near Uttam Nagar – Achieve Your Study Abroad Dream Uttam Nagar, Delhi
Guitar Classes Near Okhla – Professional Guitar Training in South Delhi Okhla, Delhi
Spoken English Classes Near By Greater Kailash Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Greater Kailash, Delhi
Geography Coaching Classes Near By Dwarka Mor Build Strong Conceptual Understanding & Score High in Board Exams Dwarka Mor, Delhi
Prenatal Yoga Training Near By Uttam Nagar – Safe & Guided Pregnancy Wellness Uttam Nagar, Delhi
Harmonium Classes Near By Saket – Learn Classical & Devotional Music with Confidence Delhi
Spoken English Classes Near By Najafgarh Improve Fluency, Build Confidence & Open New Career Opportunities in 2026 Najafgarh, Delhi
⭐ Premium Institute Network

Discover Elite Educational Institutes

Connect with top-tier educational institutions offering world-class learning experiences, expert faculty, and innovative teaching methodologies

Réussi Academy of languages

sugandha mishra

Réussi Academy of languages
Madhya pradesh, Indore, G...

Details

Coaching Center
Private
Est. 2021-Present

Sugandha Mishra is the Founder Director of Réussi Academy of Languages, a premie...

IGS Institute

Pranav Shivhare

IGS Institute
Uttar Pradesh, Noida, Sec...

Details

Coaching Center
Private
Est. 2011-2020

Institute For Government Services

Krishna home tutor

Krishna Home tutor

Krishna home tutor
New Delhi, New Delhi, 110...

Details

School
Private
Est. 2001-2010

Krishna home tutor provide tutors for all subjects & classes since 2001

Edustunt Tuition Centre

Lakhwinder Singh

Edustunt Tuition Centre
Punjab, Hoshiarpur, 14453...

Details

Coaching Center
Private
Est. 2021-Present
Great success tuition & tutor

Ginni Sahdev

Great success tuition & tutor
Delhi, Delhi, Raja park,...

Details

Coaching Center
Private
Est. 2011-2020