Data Structures Notes | B.Sc. (Information Technology) Semester 3 | Mumbai University | munotes
Official Notes munotes.in
Data Structures
B.SC. (INFORMATION TECHNOLOGY) · SEMESTER 3
Strictly as per the University of Mumbai NEP syllabus in force for B.Sc. (Information Technology)
For B.Sc. (Information Technology) students of the University of Mumbai and all its affiliated colleges
Open the book ↓munotes.in Second Year
Contents
Module I Introduction
- What a Data Structure Is, and Why the One You Pick Decides Whether the Program Works 1
- How This Paper Is Examined, and How to Read This Book 5
- Data: What It Is Before Anybody Has Asked It a Question 9
- Information: Data With a Question Asked of It 14
- The Abstract Data Type: The Operations Are the Contract 17
- Linear Data Structures: One Thing After Another 22
- Non-Linear Data Structures: Where Branching Pays 26
- Algorithm Analysis: Why Nobody Measures an Algorithm With a Clock 30
- Time Complexity: Counting the Basic Operation 36
- Big O Notation: The Definition, and How to Read It Aloud 40
- The Growth Rates on This Paper, Ordered and Measured 44
- Best Case, Average Case and Worst Case 48
- Space Complexity, and the Trade Against Time 52
- Choosing the Faster of Two Solutions, on Evidence 56
- The Array: What It Is, and the One Property Everything Follows From 60
- Address Arithmetic: Why Indexing Costs the Same Every Time 65
- Traversing an Array 70
- Searching an Array by Walking It 74
- Insertion Into an Array, and the Shifting It Costs 78
- Inserting at a Stated Position: the Lab Exercise, Complete 83
- Deletion From an Array, and the Hole It Leaves 88
- Deleting From a Stated Position: the Lab Exercise, Complete 94
- What the Array Cannot Do 100
- The Singly Linked List: the Node, the Link and the Head 104
- How a Linked List Sits in Memory 109
- Dynamic Memory: Asking for a Node and Giving It Back 114
- Creating a Singly Linked List, and the Empty List 120
- Traversing a Singly Linked List 125
- Searching a Linked List, and the One Thing It Cannot Do 131
- Inserting at the Beginning and at the End 137
- Inserting at a Given Position 143
- Deleting a Node: the First, the Last and One in the Middle 150
- Array Against Linked List, Operation by Operation 156
- The Advantages and Disadvantages of Each, as a Decision 162
- The Stack: Last In, First Out 167
- The Stack ADT: Its Operations and Its Two Error States 171
- push, pop and peek, One at a Time 176
- Implementing a Stack on an Array 181
- The Lab Exercise: a Stack on an Array, Complete 187
- What a Stack Is Actually For 191
- Infix, Prefix and Postfix: Three Ways to Write One Expression 196
- Precedence and Associativity, Which Is What the Conversion Uses 202
- Converting Infix to Postfix With a Stack 207
- The Lab Exercise: the Conversion, Brackets Included 214
- Evaluating a Postfix Expression With a Stack 219
- The Queue: First In, First Out 226
- enqueue, dequeue and peek 232
- Implementing a Queue on an Array, and the Drift That Ruins It 238
- The Circular Queue: the Fix, and the Full-Against-Empty Trap 245
- The Lab Exercise: a Queue on an Array, Complete 253
- What a Queue Is For: Waiting in Turn 259
- A Scheduling Scenario, Worked End to End 264
- The Lab Exercise: a Customer Service Queue, Simulated 271
- Stack Against Queue, and the Limit They Share 277
- What Recursion Is, and the One Question That Makes It Easy 281
- How a Recursive Call Actually Runs: the Call Stack 286
- The Base Case: Where a Recursion Stops 292
- The Recursive Step: Making the Problem Smaller 299
- Factorial, Traced and Run 305
- The Fibonacci Sequence, and Why the Obvious Recursion Is Slow 311
- Recursion Against Iteration: Choosing Between Them 316
- Module 1 in One Place: Definitions, Distinctions and One-Line Answers 322
Module II Trees
- The Tree: the Vocabulary Before Anything Else 328
- The Binary Tree: the Definition, and the Shapes One Can Take 333
- Representing a Binary Tree With Linked Nodes 339
- Representing a Binary Tree in an Array, and When That Is Better 344
- What a Traversal Is, and Why There Are Exactly Three of This Kind 350
- Inorder Traversal 356
- Preorder Traversal 360
- Postorder Traversal 365
- The Lab Exercise: All Three Traversals on One Tree 370
- The Binary Search Tree: the One Rule, and Everything It Buys 375
- Searching a Binary Search Tree 380
- Inserting Into a Binary Search Tree 386
- The Lab Exercise: Building a Binary Search Tree From Input 392
- The Lab Exercise: Searching for a Node 397
- Deleting From a Binary Search Tree: the Three Cases 402
- Inorder on a Binary Search Tree Comes Out Sorted, and Why That Matters 411
- The Cost of a Binary Search Tree, and the Shape That Ruins It 417
- What Trees Are For: Representing a Hierarchy 422
- A Hierarchy Worked End to End 427
- Hashing: Computing Where a Thing Lives Instead of Looking for It 432
- The Hash Function: What Makes One Good 438
- The Hash Table: Buckets, Table Size and the Load Factor 444
- Collisions: Why They Are Certain, Not Unlucky 449
- Separate Chaining, Built and Measured 454
- The Lab Exercise: a Hash Table With Separate Chaining 459
- Storing, Retrieving and Deleting 465
- What Hashing Is For: the Dictionary 473
- A Dictionary Worked End to End 479
- What Sorting Is, and the Four Properties That Tell Two Sorts Apart 488
- Bubble Sort 495
- Insertion Sort 504
- Selection Sort 513
- The Lab Exercise: the Three Sorts Compared, Counted 521
- What Searching Is, and What a Search Is Allowed to Assume 529
- Linear Search 535
- Binary Search 543
- Binary Search Needs a Sorted Array, and What That Requirement Really Costs 552
- The Lab Exercise: Linear Against Binary, Counted 561
- Choosing a Structure for a Job, and Justifying the Choice 568
- One Program That Uses Several of These Structures Together 576
- Module 2 in One Place: Definitions, Distinctions and One-Line Answers 588
The chapters
Every chapter of this book comes with the B.Sc. (Information Technology) Semester 3 notes.
The cover and the contents are free to look through. Buy the notes once to read every chapter of every subject in this semester.
Notes: ₹499 Already bought it? Sign in
Free either way: question papers, the syllabus, and the cover and contents of every book.
The rest of this subject
These notes are cut from the University's printed syllabus. Open the syllabus itself, or the past papers, for the same subject.