THEORY EXAMINATION (SEM–) 2016-17 DATA STRUCTURE

B.Tech Data Structure 0 downloads
₹29.00

DATA STRUCTURE – EEC012

B.Tech (SEM VI) | Section-wise Solved Answers


SECTION – A

(Explain the following – 2 marks each)


(a) Dynamic vs Static Data Structure

Static data structures have fixed memory size decided at compile time, such as arrays. Dynamic data structures can grow or shrink during runtime, such as linked lists.


(b) Big Omega (Ω) Notation

Big Omega notation represents the best-case time complexity of an algorithm. It provides a lower bound on running time.


(c) Pop Algorithm

Pop operation removes the top element from a stack and decreases the top pointer by one, provided the stack is not empty.


(d) Simulation Recursion

Simulation recursion replaces recursive calls with an explicit stack to avoid system recursion overhead.


(e) Preorder Traversal Algorithm

In preorder traversal, the root node is visited first, followed by the left subtree and then the right subtree.


(f) Node and Height of a Tree

A node is a basic unit containing data and links. Height of a tree is the number of edges on the longest path from root to leaf.

 

(g) Minimum Spanning Tree

A minimum spanning tree connects all vertices of a graph with minimum total edge weight and no cycles.


(h) Fully Connected Graph

A fully connected graph has an edge between every pair of vertices.


(i) Merge Sort

Given list: 3,5,4,6,8,2,9
Sorted list using merge sort:
2,3,4,5,6,8,9


(j) Sequential vs Binary Sort

Sequential sort compares elements one by one, while binary sort uses divide-and-conquer for faster searching and sorting.


SECTION – B

(Attempt any five – explained properly)


(a) Row Major and Column Major Order

Row major stores row elements consecutively, column major stores column elements consecutively.
Address calculation uses base address, element size, row and column limits.


(b) Linked List and Types

A linked list is a collection of nodes connected using pointers. Types include singly, doubly, circular, and doubly circular linked lists.
Algorithms exist for insertion at beginning, end, and specific position.


(c) Queue Insertion & Expression Conversion

Queue insertion adds an element at the rear after checking overflow.
Expressions are converted using stack precedence rules into prefix and postfix forms.


(d) Binary Tree Construction

Given inorder and postorder traversals, the binary tree is reconstructed by identifying root and subtrees recursively.


(e) Huffman Coding

Huffman algorithm builds an optimal prefix code based on probabilities.
Average code length is calculated using weighted path length.


(f) Quick Sort

Quick sort uses partitioning.
Best case complexity: O(n log n)
Worst case complexity: O(n²)
Sorted result: 26,38,43,48,50,53,60


(g) AVL Tree

AVL trees are self-balancing binary search trees.
After inserting elements, rotations are performed to maintain balance factor.


(h) BFS Traversal

Breadth First Search uses a queue to visit nodes level by level.
It is used to generate BFS spanning trees.


SECTION – C

(Attempt any two – long answers)


(3) Data Structure & Matrix Transpose

A data structure organizes data efficiently. Types include linear and non-linear structures.
Matrix transpose swaps rows and columns using nested loops in C.


(4) Tower of Hanoi & Expression Evaluation

Tower of Hanoi solves disk transfer using recursion.
Infix expression is converted to postfix using stack and evaluated step by step.


(5) Prim’s Algorithm

Prim’s algorithm finds MST by selecting minimum weight edges.
It starts from any vertex and expands the tree until all vertices are included.

File Size
128.05 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

Vedic Maths Classes Near Sector 99A Dwarka Expressway, Gurugram – Boost Speed, Accuracy & Mental Calculation Skills Sector 99A, Gurugram
Resume & Interview Coaching Near By Sector 102 Gurugram (Dwarka Expressway) – Build Confidence, Crack Interviews, Get Hired Sector 102, Gurugram
IELTS Coaching Near Noida Sector 105 – Complete Guide for Students Preparing for Study Abroad Noida
Personality Development Classes Near Uttam Nagar – Build Confidence & Leadership Skills Uttam Nagar, Delhi
Cake Decoration Classes Near By Dwarka Mor – Master the Art of Creative Cake Designing Dwarka Mor, Delhi
Yoga Classes Near By Lajpat Nagar Build Strength, Reduce Stress & Achieve Holistic Wellness in 2026 Lajpat Nagar, Delhi
SEO Training Near Sector 63 Gurugram – Master Search Engine Optimization & Build a High-Growth Career Sector 63, Gurugram
Spoken English Classes Near By Vasant Kunj Improve Fluency, Build Confidence & Achieve Career Growth in 2026 Vasant Kunj, Delhi
No Office Rent Business Setup Near Kirti Nagar Start & Grow Your Business Without Paying High Office Rent Kirti Nagar, Delhi
Guitar Classes Near By Hauz Khas Learn Guitar with Expert Guidance & Turn Your Passion into a Powerful Skill Hauz Khas, Delhi
UI/UX Designing Classes Near By Kirti Nagar – Build a Creative Tech Career Kirti Nagar, Delhi
🇩🇪 German Language Classes Near Sector 116 Noida – Learn German with Professional Training Sector 116, Noida
Guitar Classes Near Central Noida Sector 1 – Learn Guitar with Expert Trainers Noida
Spoken English Classes Near Khanna Market By Improve Fluency, Build Confidence & Unlock Global Opportunities in 2026 Khanna Market, Delhi
Yoga Classes Near By Defence Colony Experience Holistic Fitness, Mental Peace & Lifestyle Transformation in 2026 Defence Colony, Delhi
SEO Training Near Noida Sector 95 – Learn Search Engine Optimization and Build a Digital Career Noida
Zumba Classes Near Sector 130 Greater Noida – Enjoy Dance Fitness and Stay Active Sector 130, Noida
Music Production (Laptop-Based) Classes Near Sector 142 Noida – Learn Professional Digital Music Creation Sector 142, Noida
Spoken English Classes Near By Sarita Vihar Improve Fluency, Build Confidence & Unlock Career Opportunities in 2026 Sarita Vihar, Delhi
Violin Classes Near by Gurugram – Learn, Perform & Master the Art of Strings Gurugram
⭐ 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