What do you get
- The notes of the Semester 3 subjects written so far, as per the latest syllabus 2026: Applied Mathematics; Operating System; Python Programming; Data Structures; Major Practical 3.
- The other Semester 3 subject is not written yet. It comes into this same pass when it is written.
- The practical subjects too, worked out exercise by exercise: 1 practical book of 38 chapters, beside 4 theory books of 476.
- Your own dashboard, where you can track everything you have read, subject by subject.
- Priority access in our MU B.Sc. (Information Technology) student group. The groups are open, so you can send a message any time.
- Valid for one year, 365 days from the day you pay.
- If the University revises the syllabus while your year is running, the notes are rewritten to match and you read the new version at no extra cost. You are never asked to buy the same semester twice.
-
Applied Mathematics
Official Notes munotes.in
Applied Mathematics
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
munotes.in Second Year
Applied Mathematics
Copyright © 2026 munotes.in. All rights reserved.
Written and first published by munotes.in, 2026.
This book is for individual students to read at munotes.in. No part of it may be reproduced, distributed, stored, translated or used for institutional or classroom purposes in any form without a prior written licence from munotes.in.
Licensing and permissions: contact@munotes.in
The text of statutes and of judgments reproduced in this book is in the public domain under section 52(1)(q) of the Copyright Act 1957. The commentary, arrangement, examples and questions are the original work of munotes.in.
munotes.in is an independent study resource for MU students. It is not affiliated with, endorsed by, or officially connected to the University of Mumbai. Course names and university references describe the students and syllabus the material relates to.
Contents
Module I 1 Complex Numbers: Complex number, Equality of complex numbers, Graphical representation of complex number (Argand's Diagram), Polar form
- What This Subject Is About, and Where an IT Student Meets It 1
- How This Paper Is Examined, and What That Means for Your Revision 3
- Why the Square Root of Minus One Had To Be Invented 5
- The Complex Number, and Its Two Parts 7
- The Powers of i, and the Cycle of Four 10
- Equality of Two Complex Numbers, and the Two Equations It Gives You 12
- Adding and Subtracting Complex Numbers 15
- Multiplying Complex Numbers 17
- The Conjugate, and the Three Things It Is For 19
- Dividing Complex Numbers 22
- The Argand Diagram: Drawing a Complex Number 24
- The Modulus, and Distance in the Plane 27
- The Argument, and the Trap Every Calculator Sets 30
- Addition and Subtraction on the Argand Diagram 33
- Multiplication and Division on the Argand Diagram 36
- The Polar Form of a Complex Number 38
- The Polar Form of x + iy for Every Combination of Signs 40
- Multiplying and Dividing in Polar Form 42
- De Moivre's Theorem 44
Contents continued
Module I continued 1 Complex Numbers: Complex number, Equality of complex numbers, Graphical representation of complex number (Argand's Diagram), Polar form
- Taking a Power with De Moivre's Theorem 47
- The n Roots of a Complex Number 49
- The Roots of Unity, and Why a Computer Scientist Meets Them 52
- Euler's Formula, and the Exponential Form 54
- Why e to the i theta Really Is cos theta + i sin theta 56
- The Exponential Form at Work 58
- The Logarithm of a Complex Number 60
- Circular Functions of a Complex Angle 62
- Separating sin(x + iy) and cos(x + iy) 64
- The Hyperbolic Functions 66
- The Hyperbolic Identities 68
- The Relations Between the Circular and the Hyperbolic Functions 70
- Osborn's Rule, and Where It Fails 72
- tan(x + iy), and Separating It Into Real and Imaginary Parts 74
- The Inverse Hyperbolic Functions, and Why They Are Logarithms 76
- Inverse Circular Functions of a Complex Number 78
- Separating an Inverse Function Into Real and Imaginary Parts 80
- Indeterminate Forms, and Why Zero Over Zero Is Not a Number 82
Contents continued
Module I continued 1 Complex Numbers: Complex number, Equality of complex numbers, Graphical representation of complex number (Argand's Diagram), Polar form
- L'Hopital's Rule, and the Three Places This Paper Needs It 84
- What a Transform Is, and Why Anyone Would Want One 86
- The Definition of the Laplace Transform 88
- Does the Integral Exist? Piecewise Continuity and Exponential Order 91
- The Transform of 1, of t, and of t to the n, From the Definition 94
- The Transform of e to the at, From the Definition 96
- The Transform of sin at and cos at, From the Definition 98
- The Transform of sinh at and cosh at 100
- The Table of Elementary Transforms 102
- Linearity, and What It Does and Does Not Let You Do 104
- The First Shifting Theorem 106
- The First Shifting Theorem at Work 108
- Multiplying by t: Differentiating the Transform 110
- Multiplying by a Power of t 112
- Dividing by t: Integrating the Transform 114
- Change of Scale 116
- The Transform of a Derivative 118
- The Transform of an Integral 120
Contents continued
Module I continued 1 Complex Numbers: Complex number, Equality of complex numbers, Graphical representation of complex number (Argand's Diagram), Polar form
- The Initial and Final Value Theorems 122
- The Unit Step Function 125
- The Second Shifting Theorem 127
- Writing a Piecewise Function With Step Functions 129
- The Transform of a Periodic Function 132
- The Unit Impulse, and the Dirac Delta Function 134
- The Transform of Special Functions 137
- The Convolution Theorem 139
- Proving the Convolution Theorem, and Using It Forwards 142
- What the Inverse Transform Is 145
- The Table Read Backwards 147
- Completing the Square, and the First Shifting Theorem Backwards 149
- Partial Fractions: Distinct Linear Factors 151
- Partial Fractions: Repeated Factors 153
- Partial Fractions: Irreducible Quadratic Factors 155
- The Cover-Up Rule, and How to Check a Partial Fraction in Ten Seconds 157
- Inverting With the Second Shifting Theorem 160
- Inverting by Convolution 162
Contents continued
Module I continued 1 Complex Numbers: Complex number, Equality of complex numbers, Graphical representation of complex number (Argand's Diagram), Polar form
- Inverting When F(s) Is a Derivative, an Integral, or Has a Factor of s 164
- Solving a Differential Equation by the Transform: The Method 166
- Worked First-Order Initial Value Problems 168
- Second-Order Initial Value Problems 170
- Equations Driven by a Step or an Impulse 172
- Simultaneous Differential Equations by the Transform 174
Module II 1 Equation of the first order and of the first degree: Separation of variables, 15 Hrs
- What a Differential Equation Is 176
- Order, Degree, and Linearity 178
- Where Differential Equations Come From 180
- Forming a Differential Equation by Eliminating the Constants 182
- What a Solution Is: General, Particular, and Singular 184
- Separating the Variables 187
- Worked Separable Equations 189
- Equations That Become Separable by a Substitution 191
- Equations Homogeneous in x and y 193
- Worked Homogeneous Equations 196
- Non-Homogeneous Linear Equations 199
Contents continued
Module II continued 1 Equation of the first order and of the first degree: Separation of variables, 15 Hrs
- When the Two Lines Are Parallel 201
- The Exact Differential Equation 203
- The Test for Exactness, and Why It Works 205
- Solving an Exact Equation 207
- Integrating Factors: What They Are and Why They Exist 210
- Finding an Integrating Factor by Inspection 212
- The Integrating Factor of a Homogeneous Equation 214
- The Integrating Factor When the Equation Has the Form y f(xy) dx + x g(xy) dy 216
- The Integrating Factor That Depends on x Alone 218
- The Integrating Factor That Depends on y Alone 220
- The Linear Equation of the First Order 223
- Bernoulli's Equation, and Other Equations Reducible to the Linear Form 226
- The Method of Substitution, Gathered Into One Place 229
- First-Order Equations in Practice: Decay, Cooling, Circuits and Trajectories 231
- An Equation of the First Order and a Degree Higher Than the First 234
- Solvable for p: The Method of Factors 236
- Worked Equations Solvable for p 239
Contents continued
Module II continued 1 Equation of the first order and of the first degree: Separation of variables, 15 Hrs
- Solvable for y 241
- Worked Equations Solvable for y 243
- Solvable for x 245
- Clairaut's Form 247
- The Singular Solution, and the Envelope 249
- Reducing an Equation to Clairaut's Form 252
- Choosing the Method: A Decision Table for Module 2 254
- What a Linear Equation With Constant Coefficients Is 256
- The Differential Operator D 259
- The Laws D Obeys, and the One It Does Not 261
- The Auxiliary Equation 263
- Case One: Real and Distinct Roots 265
- Case Two: Repeated Roots 267
- Case Three: Complex Roots 269
- Case Four: Repeated Complex Roots 271
- The Complete Solution: Complementary Function Plus Particular Integral 273
- The Complementary Function, and What It Physically Means 276
- The Inverse Operator 1 Over f(D) 278
- The Particular Integral When X Is an Exponential 280
Contents continued
Module II continued 1 Equation of the first order and of the first degree: Separation of variables, 15 Hrs
- When the Exponential Rule Fails, and What To Do 282
- The Particular Integral When X Is a Sine or a Cosine 284
- When the Sine Rule Fails 286
- The Particular Integral When X Is a Polynomial 288
- The Particular Integral When X Is an Exponential Times Something Else 290
- The Particular Integral When X Is x Times a Function 293
- The General Method, For When No Rule Fits 295
- Worked Equations End to End 298
- Where These Equations Come From: Circuits, Springs and Signals 301
Page 1 onwards
303 pages in this book. The cover and the contents are above. Everything from page one is in the pass.
- Notes
- 2026 Edition, as per the latest syllabus. 303 pages.
Every chapter in the notes: 135 chapters across 2 modules
Module I Complex Numbers, The Laplace Transform, and Inverse Laplace Transform 79 chapters
- 1 What This Subject Is About, and Where an IT Student Meets It pages 1 to 2
- 2 How This Paper Is Examined, and What That Means for Your Revision pages 3 to 4
- 3 Why the Square Root of Minus One Had To Be Invented pages 5 to 6
- 4 The Complex Number, and Its Two Parts pages 7 to 9
- 5 The Powers of i, and the Cycle of Four pages 10 to 11
- 6 Equality of Two Complex Numbers, and the Two Equations It Gives You pages 12 to 14
- 7 Adding and Subtracting Complex Numbers pages 15 to 16
- 8 Multiplying Complex Numbers pages 17 to 18
- 9 The Conjugate, and the Three Things It Is For pages 19 to 21
- 10 Dividing Complex Numbers pages 22 to 23
- 11 The Argand Diagram: Drawing a Complex Number pages 24 to 26
- 12 The Modulus, and Distance in the Plane pages 27 to 29
- 13 The Argument, and the Trap Every Calculator Sets pages 30 to 32
- 14 Addition and Subtraction on the Argand Diagram pages 33 to 35
- 15 Multiplication and Division on the Argand Diagram pages 36 to 37
- 16 The Polar Form of a Complex Number pages 38 to 39
- 17 The Polar Form of x + iy for Every Combination of Signs pages 40 to 41
- 18 Multiplying and Dividing in Polar Form pages 42 to 43
- 19 De Moivre's Theorem pages 44 to 46
- 20 Taking a Power with De Moivre's Theorem pages 47 to 48
- 21 The n Roots of a Complex Number pages 49 to 51
- 22 The Roots of Unity, and Why a Computer Scientist Meets Them pages 52 to 53
- 23 Euler's Formula, and the Exponential Form pages 54 to 55
- 24 Why e to the i theta Really Is cos theta + i sin theta pages 56 to 57
- 25 The Exponential Form at Work pages 58 to 59
- 26 The Logarithm of a Complex Number pages 60 to 61
- 27 Circular Functions of a Complex Angle pages 62 to 63
- 28 Separating sin(x + iy) and cos(x + iy) pages 64 to 65
- 29 The Hyperbolic Functions pages 66 to 67
- 30 The Hyperbolic Identities pages 68 to 69
- 31 The Relations Between the Circular and the Hyperbolic Functions pages 70 to 71
- 32 Osborn's Rule, and Where It Fails pages 72 to 73
- 33 tan(x + iy), and Separating It Into Real and Imaginary Parts pages 74 to 75
- 34 The Inverse Hyperbolic Functions, and Why They Are Logarithms pages 76 to 77
- 35 Inverse Circular Functions of a Complex Number pages 78 to 79
- 36 Separating an Inverse Function Into Real and Imaginary Parts pages 80 to 81
- 37 Indeterminate Forms, and Why Zero Over Zero Is Not a Number pages 82 to 83
- 38 L'Hopital's Rule, and the Three Places This Paper Needs It pages 84 to 85
- 39 What a Transform Is, and Why Anyone Would Want One pages 86 to 87
- 40 The Definition of the Laplace Transform pages 88 to 90
- 41 Does the Integral Exist? Piecewise Continuity and Exponential Order pages 91 to 93
- 42 The Transform of 1, of t, and of t to the n, From the Definition pages 94 to 95
- 43 The Transform of e to the at, From the Definition pages 96 to 97
- 44 The Transform of sin at and cos at, From the Definition pages 98 to 99
- 45 The Transform of sinh at and cosh at pages 100 to 101
- 46 The Table of Elementary Transforms pages 102 to 103
- 47 Linearity, and What It Does and Does Not Let You Do pages 104 to 105
- 48 The First Shifting Theorem pages 106 to 107
- 49 The First Shifting Theorem at Work pages 108 to 109
- 50 Multiplying by t: Differentiating the Transform pages 110 to 111
- 51 Multiplying by a Power of t pages 112 to 113
- 52 Dividing by t: Integrating the Transform pages 114 to 115
- 53 Change of Scale pages 116 to 117
- 54 The Transform of a Derivative pages 118 to 119
- 55 The Transform of an Integral pages 120 to 121
- 56 The Initial and Final Value Theorems pages 122 to 124
- 57 The Unit Step Function pages 125 to 126
- 58 The Second Shifting Theorem pages 127 to 128
- 59 Writing a Piecewise Function With Step Functions pages 129 to 131
- 60 The Transform of a Periodic Function pages 132 to 133
- 61 The Unit Impulse, and the Dirac Delta Function pages 134 to 136
- 62 The Transform of Special Functions pages 137 to 138
- 63 The Convolution Theorem pages 139 to 141
- 64 Proving the Convolution Theorem, and Using It Forwards pages 142 to 144
- 65 What the Inverse Transform Is pages 145 to 146
- 66 The Table Read Backwards pages 147 to 148
- 67 Completing the Square, and the First Shifting Theorem Backwards pages 149 to 150
- 68 Partial Fractions: Distinct Linear Factors pages 151 to 152
- 69 Partial Fractions: Repeated Factors pages 153 to 154
- 70 Partial Fractions: Irreducible Quadratic Factors pages 155 to 156
- 71 The Cover-Up Rule, and How to Check a Partial Fraction in Ten Seconds pages 157 to 159
- 72 Inverting With the Second Shifting Theorem pages 160 to 161
- 73 Inverting by Convolution pages 162 to 163
- 74 Inverting When F(s) Is a Derivative, an Integral, or Has a Factor of s pages 164 to 165
- 75 Solving a Differential Equation by the Transform: The Method pages 166 to 167
- 76 Worked First-Order Initial Value Problems pages 168 to 169
- 77 Second-Order Initial Value Problems pages 170 to 171
- 78 Equations Driven by a Step or an Impulse pages 172 to 173
- 79 Simultaneous Differential Equations by the Transform pages 174 to 175
Module II Equations of the First Order and First Degree, Equations of Higher Degree, and Linear Differential Equations with Constant Coefficients 56 chapters
- 80 What a Differential Equation Is pages 176 to 177
- 81 Order, Degree, and Linearity pages 178 to 179
- 82 Where Differential Equations Come From pages 180 to 181
- 83 Forming a Differential Equation by Eliminating the Constants pages 182 to 183
- 84 What a Solution Is: General, Particular, and Singular pages 184 to 186
- 85 Separating the Variables pages 187 to 188
- 86 Worked Separable Equations pages 189 to 190
- 87 Equations That Become Separable by a Substitution pages 191 to 192
- 88 Equations Homogeneous in x and y pages 193 to 195
- 89 Worked Homogeneous Equations pages 196 to 198
- 90 Non-Homogeneous Linear Equations pages 199 to 200
- 91 When the Two Lines Are Parallel pages 201 to 202
- 92 The Exact Differential Equation pages 203 to 204
- 93 The Test for Exactness, and Why It Works pages 205 to 206
- 94 Solving an Exact Equation pages 207 to 209
- 95 Integrating Factors: What They Are and Why They Exist pages 210 to 211
- 96 Finding an Integrating Factor by Inspection pages 212 to 213
- 97 The Integrating Factor of a Homogeneous Equation pages 214 to 215
- 98 The Integrating Factor When the Equation Has the Form y f(xy) dx + x g(xy) dy pages 216 to 217
- 99 The Integrating Factor That Depends on x Alone pages 218 to 219
- 100 The Integrating Factor That Depends on y Alone pages 220 to 222
- 101 The Linear Equation of the First Order pages 223 to 225
- 102 Bernoulli's Equation, and Other Equations Reducible to the Linear Form pages 226 to 228
- 103 The Method of Substitution, Gathered Into One Place pages 229 to 230
- 104 First-Order Equations in Practice: Decay, Cooling, Circuits and Trajectories pages 231 to 233
- 105 An Equation of the First Order and a Degree Higher Than the First pages 234 to 235
- 106 Solvable for p: The Method of Factors pages 236 to 238
- 107 Worked Equations Solvable for p pages 239 to 240
- 108 Solvable for y pages 241 to 242
- 109 Worked Equations Solvable for y pages 243 to 244
- 110 Solvable for x pages 245 to 246
- 111 Clairaut's Form pages 247 to 248
- 112 The Singular Solution, and the Envelope pages 249 to 251
- 113 Reducing an Equation to Clairaut's Form pages 252 to 253
- 114 Choosing the Method: A Decision Table for Module 2 pages 254 to 255
- 115 What a Linear Equation With Constant Coefficients Is pages 256 to 258
- 116 The Differential Operator D pages 259 to 260
- 117 The Laws D Obeys, and the One It Does Not pages 261 to 262
- 118 The Auxiliary Equation pages 263 to 264
- 119 Case One: Real and Distinct Roots pages 265 to 266
- 120 Case Two: Repeated Roots pages 267 to 268
- 121 Case Three: Complex Roots pages 269 to 270
- 122 Case Four: Repeated Complex Roots pages 271 to 272
- 123 The Complete Solution: Complementary Function Plus Particular Integral pages 273 to 275
- 124 The Complementary Function, and What It Physically Means pages 276 to 277
- 125 The Inverse Operator 1 Over f(D) pages 278 to 279
- 126 The Particular Integral When X Is an Exponential pages 280 to 281
- 127 When the Exponential Rule Fails, and What To Do pages 282 to 283
- 128 The Particular Integral When X Is a Sine or a Cosine pages 284 to 285
- 129 When the Sine Rule Fails pages 286 to 287
- 130 The Particular Integral When X Is a Polynomial pages 288 to 289
- 131 The Particular Integral When X Is an Exponential Times Something Else pages 290 to 292
- 132 The Particular Integral When X Is x Times a Function pages 293 to 294
- 133 The General Method, For When No Rule Fits pages 295 to 297
- 134 Worked Equations End to End pages 298 to 300
- 135 Where These Equations Come From: Circuits, Springs and Signals pages 301 to 303
-
Operating System
Official Notes munotes.in
Operating System
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
munotes.in Second Year
Operating System
Copyright © 2026 munotes.in. All rights reserved.
Written and first published by munotes.in, 2026.
This book is for individual students to read at munotes.in. No part of it may be reproduced, distributed, stored, translated or used for institutional or classroom purposes in any form without a prior written licence from munotes.in.
Licensing and permissions: contact@munotes.in
The text of statutes and of judgments reproduced in this book is in the public domain under section 52(1)(q) of the Copyright Act 1957. The commentary, arrangement, examples and questions are the original work of munotes.in.
munotes.in is an independent study resource for MU students. It is not affiliated with, endorsed by, or officially connected to the University of Mumbai. Course names and university references describe the students and syllabus the material relates to.
Contents
Module I Operating System Overview: Basics of operating systems: Generations, Types, Structure, Services, System Calls, System Boot, System Programs, Protection and Security
- What an Operating System Is 1
- The Two Jobs: Handing Out the Machine, and Hiding It 5
- Interrupts, Traps and the Two Modes 8
- The Timer, and Getting the Processor Back 12
- The First Generation: a Machine with No Operating System 15
- The Second Generation: the Batch and the Resident Monitor 18
- The Third Generation: Multiprogramming and Spooling 21
- The Fourth Generation: Time Sharing and the Personal Computer 24
- Batch, Multiprogrammed and Time Sharing Systems 27
- Multiprocessor Systems 30
- Distributed and Clustered Systems 33
- Real Time Systems, Hard and Soft 36
- Embedded and Handheld Systems 39
- The Simple Structure and the Monolithic Kernel 42
- The Layered Approach 45
- The Microkernel 48
- Modules, Hybrid Kernels and the Virtual Machine 51
- The Services an Operating System Offers 55
- The User Interface: Command Line, Batch and Graphical 58
- What a System Call Is, and the Trap that Makes One 61
Contents continued
Module I continued Operating System Overview: Basics of operating systems: Generations, Types, Structure, Services, System Calls, System Boot, System Programs, Protection and Security
- How a System Call Carries Its Arguments 64
- The Six Kinds of System Call 67
- System Boot: from Power On to the First Process 70
- System Programs 74
- Protection 77
- Security 81
- Protection and Security on a Machine You Can Log In To 85
- What a Process Is 89
- The Memory a Process Occupies 92
- Operations on Processes: Creation and Termination 95
- The Five Process States 99
- The Queues a Process Waits In 102
- The Process Control Block 105
- The Context Switch, and What It Costs 108
- The Five Scheduling Criteria 112
- First Come First Served 115
- Shortest Job First 118
- Shortest Remaining Time First 121
- Priority Scheduling and Starvation 124
Contents continued
Module I continued Operating System Overview: Basics of operating systems: Generations, Types, Structure, Services, System Calls, System Boot, System Programs, Protection and Security
- Round Robin and the Quantum 128
- Multilevel Queue Scheduling 132
- Multilevel Feedback Queue Scheduling 135
- Every Algorithm on One Problem 139
- Evaluating a Scheduling Algorithm: Deterministic Modelling 143
- Queueing Models, Simulation and Implementation 146
- What a Thread Is 150
- User Threads, Kernel Threads and the Three Models 153
- Threading Issues 156
- Two Processes, One Variable, and an Answer that Changes 160
- A Race Condition Made to Happen 163
- The Critical Section Problem 167
- Two Attempts that Fail, and Why 171
- Peterson's Solution 174
- Why Peterson's Solution Works, and Where It Still Breaks 178
- Synchronization Hardware: Test and Set 182
- Compare and Swap, and the Atomic Variable 186
- Mutex Locks and the Spinlock 190
- Semaphores: Wait and Signal 193
Contents continued
Module I continued Operating System Overview: Basics of operating systems: Generations, Types, Structure, Services, System Calls, System Boot, System Programs, Protection and Security
- Counting and Binary Semaphores, Without Busy Waiting 197
- The Bounded Buffer Problem 201
- The Readers and Writers Problem 204
- The Dining Philosophers Problem 208
- Deadlock and Starvation from Semaphores Used Wrongly 212
Module II Memory Management: Main Memory, Swapping, Contiguous Memory 15 Hrs
- The Address the Program Uses, and the Address the Hardware Sees 216
- Binding an Address: Compile, Load and Run Time 219
- The Memory Management Unit and the Relocation Register 222
- The Base and Limit Registers 225
- Dynamic Loading and Dynamic Linking 228
- Swapping 231
- What Swapping Costs, and When It Is Worth It 234
- One Partition, then Fixed Partitions 237
- Variable Partitions and the List of Holes 240
- First Fit, Best Fit and Worst Fit 243
- External and Internal Fragmentation, and Compaction 246
- Paging: the Page and the Frame 249
Contents continued
Module II continued Memory Management: Main Memory, Swapping, Contiguous Memory 15 Hrs
- The Page Table and the Address Split 252
- Working a Paging Sum 255
- The Frame Table, and What Paging Costs in Space 258
- The Translation Look-aside Buffer 261
- Effective Access Time with a TLB 264
- Protection Bits, the Valid-Invalid Bit, and Shared Pages 267
- Hierarchical Page Tables 270
- Hashed and Inverted Page Tables 273
- Segmentation 276
- Segmentation with Paging 279
- Virtual Memory: What It Is, and What It Buys 282
- Demand Paging 285
- The Page Fault, Step by Step 288
- The Effective Access Time of Demand Paging 291
- Page Replacement: the Problem and the Reference String 294
- First In First Out Replacement, and Belady's Anomaly 298
- Optimal Replacement 302
- Least Recently Used Replacement 305
- Approximating LRU: the Reference Bit and Second Chance 308
Contents continued
Module II continued Memory Management: Main Memory, Swapping, Contiguous Memory 15 Hrs
- Counting Based Replacement, and Page Buffering 311
- Every Replacement Algorithm on One Reference String 315
- Allocation of Frames: How Many Each Process Gets 318
- Global and Local Replacement 321
- Thrashing 324
- The Working Set Model 327
- Page Fault Frequency, and What to Do About Thrashing 330
- The System Model: Resources and Instances 333
- The Four Necessary Conditions 336
- The Resource Allocation Graph 339
- The Four Ways to Handle a Deadlock 342
- Deadlock Prevention, Condition by Condition 345
- The Safe State 349
- The Resource Allocation Graph Algorithm 352
- The Banker's Algorithm 355
- A Request Tested Against the Banker's Algorithm 358
- Detecting a Deadlock with a Wait-For Graph 362
- The Detection Algorithm for Several Instances 365
- Recovery by Killing Processes 368
Contents continued
Module II continued Memory Management: Main Memory, Swapping, Contiguous Memory 15 Hrs
- Recovery by Taking Resources Back 371
- What a File Is 374
- The Operations on a File, and the Open File Table 377
- File Types and the Structure Inside a File 380
- Sequential Access 383
- Direct Access 386
- Indexed Access 389
- The Single Level and Two Level Directory 392
- The Tree Directory 395
- The Acyclic Graph and General Graph Directory 398
- The Layers of a File System 402
- The Structures on the Disk Itself 405
- A Real File System Opened Up 408
- The Disk the File System Is Written On 411
- Disk Scheduling 414
- The Examination Itself 418
Page 1 onwards
421 pages in this book. The cover and the contents are above. Everything from page one is in the pass.
- Notes
- 2026 Edition, as per the latest syllabus. 421 pages.
Every chapter in the notes: 129 chapters across 2 modules
Module I Operating System Overview, Process Management and Process Synchronization 63 chapters
- 1 What an Operating System Is pages 1 to 4
- 2 The Two Jobs: Handing Out the Machine, and Hiding It pages 5 to 7
- 3 Interrupts, Traps and the Two Modes pages 8 to 11
- 4 The Timer, and Getting the Processor Back pages 12 to 14
- 5 The First Generation: a Machine with No Operating System pages 15 to 17
- 6 The Second Generation: the Batch and the Resident Monitor pages 18 to 20
- 7 The Third Generation: Multiprogramming and Spooling pages 21 to 23
- 8 The Fourth Generation: Time Sharing and the Personal Computer pages 24 to 26
- 9 Batch, Multiprogrammed and Time Sharing Systems pages 27 to 29
- 10 Multiprocessor Systems pages 30 to 32
- 11 Distributed and Clustered Systems pages 33 to 35
- 12 Real Time Systems, Hard and Soft pages 36 to 38
- 13 Embedded and Handheld Systems pages 39 to 41
- 14 The Simple Structure and the Monolithic Kernel pages 42 to 44
- 15 The Layered Approach pages 45 to 47
- 16 The Microkernel pages 48 to 50
- 17 Modules, Hybrid Kernels and the Virtual Machine pages 51 to 54
- 18 The Services an Operating System Offers pages 55 to 57
- 19 The User Interface: Command Line, Batch and Graphical pages 58 to 60
- 20 What a System Call Is, and the Trap that Makes One pages 61 to 63
- 21 How a System Call Carries Its Arguments pages 64 to 66
- 22 The Six Kinds of System Call pages 67 to 69
- 23 System Boot: from Power On to the First Process pages 70 to 73
- 24 System Programs pages 74 to 76
- 25 Protection pages 77 to 80
- 26 Security pages 81 to 84
- 27 Protection and Security on a Machine You Can Log In To pages 85 to 88
- 28 What a Process Is pages 89 to 91
- 29 The Memory a Process Occupies pages 92 to 94
- 30 Operations on Processes: Creation and Termination pages 95 to 98
- 31 The Five Process States pages 99 to 101
- 32 The Queues a Process Waits In pages 102 to 104
- 33 The Process Control Block pages 105 to 107
- 34 The Context Switch, and What It Costs pages 108 to 111
- 35 The Five Scheduling Criteria pages 112 to 114
- 36 First Come First Served pages 115 to 117
- 37 Shortest Job First pages 118 to 120
- 38 Shortest Remaining Time First pages 121 to 123
- 39 Priority Scheduling and Starvation pages 124 to 127
- 40 Round Robin and the Quantum pages 128 to 131
- 41 Multilevel Queue Scheduling pages 132 to 134
- 42 Multilevel Feedback Queue Scheduling pages 135 to 138
- 43 Every Algorithm on One Problem pages 139 to 142
- 44 Evaluating a Scheduling Algorithm: Deterministic Modelling pages 143 to 145
- 45 Queueing Models, Simulation and Implementation pages 146 to 149
- 46 What a Thread Is pages 150 to 152
- 47 User Threads, Kernel Threads and the Three Models pages 153 to 155
- 48 Threading Issues pages 156 to 159
- 49 Two Processes, One Variable, and an Answer that Changes pages 160 to 162
- 50 A Race Condition Made to Happen pages 163 to 166
- 51 The Critical Section Problem pages 167 to 170
- 52 Two Attempts that Fail, and Why pages 171 to 173
- 53 Peterson's Solution pages 174 to 177
- 54 Why Peterson's Solution Works, and Where It Still Breaks pages 178 to 181
- 55 Synchronization Hardware: Test and Set pages 182 to 185
- 56 Compare and Swap, and the Atomic Variable pages 186 to 189
- 57 Mutex Locks and the Spinlock pages 190 to 192
- 58 Semaphores: Wait and Signal pages 193 to 196
- 59 Counting and Binary Semaphores, Without Busy Waiting pages 197 to 200
- 60 The Bounded Buffer Problem pages 201 to 203
- 61 The Readers and Writers Problem pages 204 to 207
- 62 The Dining Philosophers Problem pages 208 to 211
- 63 Deadlock and Starvation from Semaphores Used Wrongly pages 212 to 215
Module II Memory Management, Deadlock and the File System Interface 66 chapters
- 64 The Address the Program Uses, and the Address the Hardware Sees pages 216 to 218
- 65 Binding an Address: Compile, Load and Run Time pages 219 to 221
- 66 The Memory Management Unit and the Relocation Register pages 222 to 224
- 67 The Base and Limit Registers pages 225 to 227
- 68 Dynamic Loading and Dynamic Linking pages 228 to 230
- 69 Swapping pages 231 to 233
- 70 What Swapping Costs, and When It Is Worth It pages 234 to 236
- 71 One Partition, then Fixed Partitions pages 237 to 239
- 72 Variable Partitions and the List of Holes pages 240 to 242
- 73 First Fit, Best Fit and Worst Fit pages 243 to 245
- 74 External and Internal Fragmentation, and Compaction pages 246 to 248
- 75 Paging: the Page and the Frame pages 249 to 251
- 76 The Page Table and the Address Split pages 252 to 254
- 77 Working a Paging Sum pages 255 to 257
- 78 The Frame Table, and What Paging Costs in Space pages 258 to 260
- 79 The Translation Look-aside Buffer pages 261 to 263
- 80 Effective Access Time with a TLB pages 264 to 266
- 81 Protection Bits, the Valid-Invalid Bit, and Shared Pages pages 267 to 269
- 82 Hierarchical Page Tables pages 270 to 272
- 83 Hashed and Inverted Page Tables pages 273 to 275
- 84 Segmentation pages 276 to 278
- 85 Segmentation with Paging pages 279 to 281
- 86 Virtual Memory: What It Is, and What It Buys pages 282 to 284
- 87 Demand Paging pages 285 to 287
- 88 The Page Fault, Step by Step pages 288 to 290
- 89 The Effective Access Time of Demand Paging pages 291 to 293
- 90 Page Replacement: the Problem and the Reference String pages 294 to 297
- 91 First In First Out Replacement, and Belady's Anomaly pages 298 to 301
- 92 Optimal Replacement pages 302 to 304
- 93 Least Recently Used Replacement pages 305 to 307
- 94 Approximating LRU: the Reference Bit and Second Chance pages 308 to 310
- 95 Counting Based Replacement, and Page Buffering pages 311 to 314
- 96 Every Replacement Algorithm on One Reference String pages 315 to 317
- 97 Allocation of Frames: How Many Each Process Gets pages 318 to 320
- 98 Global and Local Replacement pages 321 to 323
- 99 Thrashing pages 324 to 326
- 100 The Working Set Model pages 327 to 329
- 101 Page Fault Frequency, and What to Do About Thrashing pages 330 to 332
- 102 The System Model: Resources and Instances pages 333 to 335
- 103 The Four Necessary Conditions pages 336 to 338
- 104 The Resource Allocation Graph pages 339 to 341
- 105 The Four Ways to Handle a Deadlock pages 342 to 344
- 106 Deadlock Prevention, Condition by Condition pages 345 to 348
- 107 The Safe State pages 349 to 351
- 108 The Resource Allocation Graph Algorithm pages 352 to 354
- 109 The Banker's Algorithm pages 355 to 357
- 110 A Request Tested Against the Banker's Algorithm pages 358 to 361
- 111 Detecting a Deadlock with a Wait-For Graph pages 362 to 364
- 112 The Detection Algorithm for Several Instances pages 365 to 367
- 113 Recovery by Killing Processes pages 368 to 370
- 114 Recovery by Taking Resources Back pages 371 to 373
- 115 What a File Is pages 374 to 376
- 116 The Operations on a File, and the Open File Table pages 377 to 379
- 117 File Types and the Structure Inside a File pages 380 to 382
- 118 Sequential Access pages 383 to 385
- 119 Direct Access pages 386 to 388
- 120 Indexed Access pages 389 to 391
- 121 The Single Level and Two Level Directory pages 392 to 394
- 122 The Tree Directory pages 395 to 397
- 123 The Acyclic Graph and General Graph Directory pages 398 to 401
- 124 The Layers of a File System pages 402 to 404
- 125 The Structures on the Disk Itself pages 405 to 407
- 126 A Real File System Opened Up pages 408 to 410
- 127 The Disk the File System Is Written On pages 411 to 413
- 128 Disk Scheduling pages 414 to 417
- 129 The Examination Itself pages 418 to 421
-
Python Programming
Official Notes munotes.in
Python Programming
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
munotes.in Second Year
Python Programming
Copyright © 2026 munotes.in. All rights reserved.
Written and first published by munotes.in, 2026.
This book is for individual students to read at munotes.in. No part of it may be reproduced, distributed, stored, translated or used for institutional or classroom purposes in any form without a prior written licence from munotes.in.
Licensing and permissions: contact@munotes.in
The text of statutes and of judgments reproduced in this book is in the public domain under section 52(1)(q) of the Copyright Act 1957. The commentary, arrangement, examples and questions are the original work of munotes.in.
munotes.in is an independent study resource for MU students. It is not affiliated with, endorsed by, or officially connected to the University of Mumbai. Course names and university references describe the students and syllabus the material relates to.
Contents
Module I Basic Elements of Python Programming
- What Python Is, and the Features That Made It Popular 1
- Installing Python and Running Your First Program 6
- How a Python Program Is Executed: Source, Bytecode and the PVM 10
- The Python Interpreter: The Prompt, Script Mode and the Command Line 14
- Comments 18
- IDLE: The Shell, The Editor and The Debugger 22
- The Data Types Python Gives You 26
- Numbers: int, float, complex and bool 30
- The Dictionary as a Data Type 34
- Sets and the frozenset 37
- Mapping: What a Mapping Type Is 41
- Tokens, Keywords, Identifiers and Literals 44
- Statements, Lines and Indentation 48
- Variables and What a Name Really Holds 52
- Reading What the User Types: The input() Function 56
- Output Statements: The print() Function 60
- Command Line Arguments and sys.argv 63
- Arithmetic Operators 66
- Relational Operators and Chained Comparison 70
Contents continued
Module I continued Basic Elements of Python Programming
- Logical Operators and Short-Circuit Evaluation 74
- Bitwise Operators 78
- Assignment Operators 82
- Membership and Identity Operators 86
- Precedence and Associativity of Operators 90
- Control Statements: The Three Kinds Python Has 94
- The if Statement 98
- The if...else Statement and the Conditional Expression 101
- The if...elif...else Statement 105
- The while Loop 109
- The for Loop and the range() Function 113
- The Infinite Loop and The Nested Loop 117
- The else Suite on a Loop 122
- break, continue and pass 125
- The assert Statement 129
- The return Statement 132
- What an Array Is, and Why a List Is Not One 135
- Creating an Array with the array Module 139
- Indexing and Slicing an Array 143
Contents continued
Module I continued Basic Elements of Python Programming
- Basic Array Operations 147
- Processing an Array 151
- NumPy and the ndarray 156
- Mathematical Operations on an Array 160
- Aliasing an Array Against Copying One 165
- Slicing and Indexing in NumPy Arrays 170
- Basic Slicing of a NumPy Array 174
- Advanced Indexing 178
- Dimensions and Attributes of an Array 183
- Function Definition and Call 188
- Returning a Result from a Function 192
- Returning Multiple Values from a Function 196
- The Built-in Functions 200
- The Difference Between a Function and a Method 204
- Pass by Object Reference 208
- Parameters and Arguments 213
- Default and Keyword Arguments 216
- *args and **kwargs: Any Number of Arguments 220
- Local and Global Scope 224
Contents continued
Module I continued Basic Elements of Python Programming
- Recursive Functions 229
- Anonymous Functions: The lambda 234
- Modules in Python 239
- Writing Your Own Module and the __name__ == '__main__' Idiom 244
- Creating Strings 249
- The Functions and Methods of a String 253
- Working with Strings: Indexing, Slicing, Concatenation and Membership 258
- Formatting Strings: The f-string 263
- Formatting Strings with format() and the Percent Operator 267
- Finding the Number of Characters and Words 271
- Inserting a Substring into a String 276
- Module 1: The Practical Set 280
Module II List
- Exploring the List: What Makes It Different 289
- Creating a List 293
- List Functions and Methods 298
- List Operations 303
- List Slices 308
Contents continued
Module II continued List
- Nested Lists and the Matrix 312
- Tuples 317
- The Functions That Work on a Tuple 321
- Creating a Dictionary 325
- The Operators That Work on a Dictionary 330
- Dictionary Methods 334
- Using a for Loop with a Dictionary 339
- Operations on Dictionaries 343
- Sorting a Dictionary by Value 348
- Opening and Closing a File 352
- Working with Text Files 356
- Reading the Last n Lines of a File 361
- Working with Binary Files 365
- The with Statement 370
- Pickle in Python 374
- seek() and tell() 380
- Random Access to a Binary File 385
- Zipping and Unzipping Files 390
- Working with Directories 395
Contents continued
Module II continued List
- Regular Expressions: An Introduction 401
- Sequence Characters in a Regular Expression 407
- Special Characters in a Regular Expression 412
- Using a Regular Expression on a File 418
- Retrieving Information from an HTML File 423
- Time in Python: The Epoch and struct_time 428
- The date Object 433
- The Date and Time Now 438
- Combining a Date and a Time 442
- Formatting a Date and a Time 446
- Finding and Comparing Dates 451
- Sorting Dates 457
- Knowing the Time a Program Takes 462
- Working with the Calendar Module 467
- Module 2: The Practical Set 472
- Sitting the Paper: Thirty Marks in One Hour 479
Page 1 onwards
483 pages in this book. The cover and the contents are above. Everything from page one is in the pass.
- Notes
- 2026 Edition, as per the latest syllabus. 483 pages.
Every chapter in the notes: 109 chapters across 2 modules
Module I Basic Elements of Python Programming 69 chapters
- 1 What Python Is, and the Features That Made It Popular pages 1 to 5
- 2 Installing Python and Running Your First Program pages 6 to 9
- 3 How a Python Program Is Executed: Source, Bytecode and the PVM pages 10 to 13
- 4 The Python Interpreter: The Prompt, Script Mode and the Command Line pages 14 to 17
- 5 Comments pages 18 to 21
- 6 IDLE: The Shell, The Editor and The Debugger pages 22 to 25
- 7 The Data Types Python Gives You pages 26 to 29
- 8 Numbers: int, float, complex and bool pages 30 to 33
- 9 The Dictionary as a Data Type pages 34 to 36
- 10 Sets and the frozenset pages 37 to 40
- 11 Mapping: What a Mapping Type Is pages 41 to 43
- 12 Tokens, Keywords, Identifiers and Literals pages 44 to 47
- 13 Statements, Lines and Indentation pages 48 to 51
- 14 Variables and What a Name Really Holds pages 52 to 55
- 15 Reading What the User Types: The input() Function pages 56 to 59
- 16 Output Statements: The print() Function pages 60 to 62
- 17 Command Line Arguments and sys.argv pages 63 to 65
- 18 Arithmetic Operators pages 66 to 69
- 19 Relational Operators and Chained Comparison pages 70 to 73
- 20 Logical Operators and Short-Circuit Evaluation pages 74 to 77
- 21 Bitwise Operators pages 78 to 81
- 22 Assignment Operators pages 82 to 85
- 23 Membership and Identity Operators pages 86 to 89
- 24 Precedence and Associativity of Operators pages 90 to 93
- 25 Control Statements: The Three Kinds Python Has pages 94 to 97
- 26 The if Statement pages 98 to 100
- 27 The if...else Statement and the Conditional Expression pages 101 to 104
- 28 The if...elif...else Statement pages 105 to 108
- 29 The while Loop pages 109 to 112
- 30 The for Loop and the range() Function pages 113 to 116
- 31 The Infinite Loop and The Nested Loop pages 117 to 121
- 32 The else Suite on a Loop pages 122 to 124
- 33 break, continue and pass pages 125 to 128
- 34 The assert Statement pages 129 to 131
- 35 The return Statement pages 132 to 134
- 36 What an Array Is, and Why a List Is Not One pages 135 to 138
- 37 Creating an Array with the array Module pages 139 to 142
- 38 Indexing and Slicing an Array pages 143 to 146
- 39 Basic Array Operations pages 147 to 150
- 40 Processing an Array pages 151 to 155
- 41 NumPy and the ndarray pages 156 to 159
- 42 Mathematical Operations on an Array pages 160 to 164
- 43 Aliasing an Array Against Copying One pages 165 to 169
- 44 Slicing and Indexing in NumPy Arrays pages 170 to 173
- 45 Basic Slicing of a NumPy Array pages 174 to 177
- 46 Advanced Indexing pages 178 to 182
- 47 Dimensions and Attributes of an Array pages 183 to 187
- 48 Function Definition and Call pages 188 to 191
- 49 Returning a Result from a Function pages 192 to 195
- 50 Returning Multiple Values from a Function pages 196 to 199
- 51 The Built-in Functions pages 200 to 203
- 52 The Difference Between a Function and a Method pages 204 to 207
- 53 Pass by Object Reference pages 208 to 212
- 54 Parameters and Arguments pages 213 to 215
- 55 Default and Keyword Arguments pages 216 to 219
- 56 *args and **kwargs: Any Number of Arguments pages 220 to 223
- 57 Local and Global Scope pages 224 to 228
- 58 Recursive Functions pages 229 to 233
- 59 Anonymous Functions: The lambda pages 234 to 238
- 60 Modules in Python pages 239 to 243
- 61 Writing Your Own Module and the __name__ == '__main__' Idiom pages 244 to 248
- 62 Creating Strings pages 249 to 252
- 63 The Functions and Methods of a String pages 253 to 257
- 64 Working with Strings: Indexing, Slicing, Concatenation and Membership pages 258 to 262
- 65 Formatting Strings: The f-string pages 263 to 266
- 66 Formatting Strings with format() and the Percent Operator pages 267 to 270
- 67 Finding the Number of Characters and Words pages 271 to 275
- 68 Inserting a Substring into a String pages 276 to 279
- 69 Module 1: The Practical Set pages 280 to 288
Module II List 40 chapters
- 70 Exploring the List: What Makes It Different pages 289 to 292
- 71 Creating a List pages 293 to 297
- 72 List Functions and Methods pages 298 to 302
- 73 List Operations pages 303 to 307
- 74 List Slices pages 308 to 311
- 75 Nested Lists and the Matrix pages 312 to 316
- 76 Tuples pages 317 to 320
- 77 The Functions That Work on a Tuple pages 321 to 324
- 78 Creating a Dictionary pages 325 to 329
- 79 The Operators That Work on a Dictionary pages 330 to 333
- 80 Dictionary Methods pages 334 to 338
- 81 Using a for Loop with a Dictionary pages 339 to 342
- 82 Operations on Dictionaries pages 343 to 347
- 83 Sorting a Dictionary by Value pages 348 to 351
- 84 Opening and Closing a File pages 352 to 355
- 85 Working with Text Files pages 356 to 360
- 86 Reading the Last n Lines of a File pages 361 to 364
- 87 Working with Binary Files pages 365 to 369
- 88 The with Statement pages 370 to 373
- 89 Pickle in Python pages 374 to 379
- 90 seek() and tell() pages 380 to 384
- 91 Random Access to a Binary File pages 385 to 389
- 92 Zipping and Unzipping Files pages 390 to 394
- 93 Working with Directories pages 395 to 400
- 94 Regular Expressions: An Introduction pages 401 to 406
- 95 Sequence Characters in a Regular Expression pages 407 to 411
- 96 Special Characters in a Regular Expression pages 412 to 417
- 97 Using a Regular Expression on a File pages 418 to 422
- 98 Retrieving Information from an HTML File pages 423 to 427
- 99 Time in Python: The Epoch and struct_time pages 428 to 432
- 100 The date Object pages 433 to 437
- 101 The Date and Time Now pages 438 to 441
- 102 Combining a Date and a Time pages 442 to 445
- 103 Formatting a Date and a Time pages 446 to 450
- 104 Finding and Comparing Dates pages 451 to 456
- 105 Sorting Dates pages 457 to 461
- 106 Knowing the Time a Program Takes pages 462 to 466
- 107 Working with the Calendar Module pages 467 to 471
- 108 Module 2: The Practical Set pages 472 to 478
- 109 Sitting the Paper: Thirty Marks in One Hour pages 479 to 483
-
Data Structures
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
munotes.in Second Year
Data Structures
Copyright © 2026 munotes.in. All rights reserved.
Written and first published by munotes.in, 2026.
This book is for individual students to read at munotes.in. No part of it may be reproduced, distributed, stored, translated or used for institutional or classroom purposes in any form without a prior written licence from munotes.in.
Licensing and permissions: contact@munotes.in
The text of statutes and of judgments reproduced in this book is in the public domain under section 52(1)(q) of the Copyright Act 1957. The commentary, arrangement, examples and questions are the original work of munotes.in.
munotes.in is an independent study resource for MU students. It is not affiliated with, endorsed by, or officially connected to the University of Mumbai. Course names and university references describe the students and syllabus the material relates to.
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
Contents continued
Module I continued Introduction
- 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
Contents continued
Module I continued Introduction
- 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
Contents continued
Module I continued Introduction
- 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
Contents continued
Module II continued Trees
- 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
Contents continued
Module II continued Trees
- 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
Page 1 onwards
594 pages in this book. The cover and the contents are above. Everything from page one is in the pass.
- Notes
- 2026 Edition, as per the latest syllabus. 594 pages.
Every chapter in the notes: 103 chapters across 2 modules
Module I Introduction, Arrays and Linked Lists, Stacks and Queues, Recursion 62 chapters
- 1 What a Data Structure Is, and Why the One You Pick Decides Whether the Program Works pages 1 to 4
- 2 How This Paper Is Examined, and How to Read This Book pages 5 to 8
- 3 Data: What It Is Before Anybody Has Asked It a Question pages 9 to 13
- 4 Information: Data With a Question Asked of It pages 14 to 16
- 5 The Abstract Data Type: The Operations Are the Contract pages 17 to 21
- 6 Linear Data Structures: One Thing After Another pages 22 to 25
- 7 Non-Linear Data Structures: Where Branching Pays pages 26 to 29
- 8 Algorithm Analysis: Why Nobody Measures an Algorithm With a Clock pages 30 to 35
- 9 Time Complexity: Counting the Basic Operation pages 36 to 39
- 10 Big O Notation: The Definition, and How to Read It Aloud pages 40 to 43
- 11 The Growth Rates on This Paper, Ordered and Measured pages 44 to 47
- 12 Best Case, Average Case and Worst Case pages 48 to 51
- 13 Space Complexity, and the Trade Against Time pages 52 to 55
- 14 Choosing the Faster of Two Solutions, on Evidence pages 56 to 59
- 15 The Array: What It Is, and the One Property Everything Follows From pages 60 to 64
- 16 Address Arithmetic: Why Indexing Costs the Same Every Time pages 65 to 69
- 17 Traversing an Array pages 70 to 73
- 18 Searching an Array by Walking It pages 74 to 77
- 19 Insertion Into an Array, and the Shifting It Costs pages 78 to 82
- 20 Inserting at a Stated Position: the Lab Exercise, Complete pages 83 to 87
- 21 Deletion From an Array, and the Hole It Leaves pages 88 to 93
- 22 Deleting From a Stated Position: the Lab Exercise, Complete pages 94 to 99
- 23 What the Array Cannot Do pages 100 to 103
- 24 The Singly Linked List: the Node, the Link and the Head pages 104 to 108
- 25 How a Linked List Sits in Memory pages 109 to 113
- 26 Dynamic Memory: Asking for a Node and Giving It Back pages 114 to 119
- 27 Creating a Singly Linked List, and the Empty List pages 120 to 124
- 28 Traversing a Singly Linked List pages 125 to 130
- 29 Searching a Linked List, and the One Thing It Cannot Do pages 131 to 136
- 30 Inserting at the Beginning and at the End pages 137 to 142
- 31 Inserting at a Given Position pages 143 to 149
- 32 Deleting a Node: the First, the Last and One in the Middle pages 150 to 155
- 33 Array Against Linked List, Operation by Operation pages 156 to 161
- 34 The Advantages and Disadvantages of Each, as a Decision pages 162 to 166
- 35 The Stack: Last In, First Out pages 167 to 170
- 36 The Stack ADT: Its Operations and Its Two Error States pages 171 to 175
- 37 push, pop and peek, One at a Time pages 176 to 180
- 38 Implementing a Stack on an Array pages 181 to 186
- 39 The Lab Exercise: a Stack on an Array, Complete pages 187 to 190
- 40 What a Stack Is Actually For pages 191 to 195
- 41 Infix, Prefix and Postfix: Three Ways to Write One Expression pages 196 to 201
- 42 Precedence and Associativity, Which Is What the Conversion Uses pages 202 to 206
- 43 Converting Infix to Postfix With a Stack pages 207 to 213
- 44 The Lab Exercise: the Conversion, Brackets Included pages 214 to 218
- 45 Evaluating a Postfix Expression With a Stack pages 219 to 225
- 46 The Queue: First In, First Out pages 226 to 231
- 47 enqueue, dequeue and peek pages 232 to 237
- 48 Implementing a Queue on an Array, and the Drift That Ruins It pages 238 to 244
- 49 The Circular Queue: the Fix, and the Full-Against-Empty Trap pages 245 to 252
- 50 The Lab Exercise: a Queue on an Array, Complete pages 253 to 258
- 51 What a Queue Is For: Waiting in Turn pages 259 to 263
- 52 A Scheduling Scenario, Worked End to End pages 264 to 270
- 53 The Lab Exercise: a Customer Service Queue, Simulated pages 271 to 276
- 54 Stack Against Queue, and the Limit They Share pages 277 to 280
- 55 What Recursion Is, and the One Question That Makes It Easy pages 281 to 285
- 56 How a Recursive Call Actually Runs: the Call Stack pages 286 to 291
- 57 The Base Case: Where a Recursion Stops pages 292 to 298
- 58 The Recursive Step: Making the Problem Smaller pages 299 to 304
- 59 Factorial, Traced and Run pages 305 to 310
- 60 The Fibonacci Sequence, and Why the Obvious Recursion Is Slow pages 311 to 315
- 61 Recursion Against Iteration: Choosing Between Them pages 316 to 321
- 62 Module 1 in One Place: Definitions, Distinctions and One-Line Answers pages 322 to 327
Module II Trees, Hashing, Sorting and Searching 41 chapters
- 63 The Tree: the Vocabulary Before Anything Else pages 328 to 332
- 64 The Binary Tree: the Definition, and the Shapes One Can Take pages 333 to 338
- 65 Representing a Binary Tree With Linked Nodes pages 339 to 343
- 66 Representing a Binary Tree in an Array, and When That Is Better pages 344 to 349
- 67 What a Traversal Is, and Why There Are Exactly Three of This Kind pages 350 to 355
- 68 Inorder Traversal pages 356 to 359
- 69 Preorder Traversal pages 360 to 364
- 70 Postorder Traversal pages 365 to 369
- 71 The Lab Exercise: All Three Traversals on One Tree pages 370 to 374
- 72 The Binary Search Tree: the One Rule, and Everything It Buys pages 375 to 379
- 73 Searching a Binary Search Tree pages 380 to 385
- 74 Inserting Into a Binary Search Tree pages 386 to 391
- 75 The Lab Exercise: Building a Binary Search Tree From Input pages 392 to 396
- 76 The Lab Exercise: Searching for a Node pages 397 to 401
- 77 Deleting From a Binary Search Tree: the Three Cases pages 402 to 410
- 78 Inorder on a Binary Search Tree Comes Out Sorted, and Why That Matters pages 411 to 416
- 79 The Cost of a Binary Search Tree, and the Shape That Ruins It pages 417 to 421
- 80 What Trees Are For: Representing a Hierarchy pages 422 to 426
- 81 A Hierarchy Worked End to End pages 427 to 431
- 82 Hashing: Computing Where a Thing Lives Instead of Looking for It pages 432 to 437
- 83 The Hash Function: What Makes One Good pages 438 to 443
- 84 The Hash Table: Buckets, Table Size and the Load Factor pages 444 to 448
- 85 Collisions: Why They Are Certain, Not Unlucky pages 449 to 453
- 86 Separate Chaining, Built and Measured pages 454 to 458
- 87 The Lab Exercise: a Hash Table With Separate Chaining pages 459 to 464
- 88 Storing, Retrieving and Deleting pages 465 to 472
- 89 What Hashing Is For: the Dictionary pages 473 to 478
- 90 A Dictionary Worked End to End pages 479 to 487
- 91 What Sorting Is, and the Four Properties That Tell Two Sorts Apart pages 488 to 494
- 92 Bubble Sort pages 495 to 503
- 93 Insertion Sort pages 504 to 512
- 94 Selection Sort pages 513 to 520
- 95 The Lab Exercise: the Three Sorts Compared, Counted pages 521 to 528
- 96 What Searching Is, and What a Search Is Allowed to Assume pages 529 to 534
- 97 Linear Search pages 535 to 542
- 98 Binary Search pages 543 to 551
- 99 Binary Search Needs a Sorted Array, and What That Requirement Really Costs pages 552 to 560
- 100 The Lab Exercise: Linear Against Binary, Counted pages 561 to 567
- 101 Choosing a Structure for a Job, and Justifying the Choice pages 568 to 575
- 102 One Program That Uses Several of These Structures Together pages 576 to 587
- 103 Module 2 in One Place: Definitions, Distinctions and One-Line Answers pages 588 to 594
-
Major Practical 3
Official Notes munotes.in
Major Practical 3
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
munotes.in Second Year
Major Practical 3
Copyright © 2026 munotes.in. All rights reserved.
Written and first published by munotes.in, 2026.
This book is for individual students to read at munotes.in. No part of it may be reproduced, distributed, stored, translated or used for institutional or classroom purposes in any form without a prior written licence from munotes.in.
Licensing and permissions: contact@munotes.in
The text of statutes and of judgments reproduced in this book is in the public domain under section 52(1)(q) of the Copyright Act 1957. The commentary, arrangement, examples and questions are the original work of munotes.in.
munotes.in is an independent study resource for MU students. It is not affiliated with, endorsed by, or officially connected to the University of Mumbai. Course names and university references describe the students and syllabus the material relates to.
Contents
Module I 1. Write programs for the following:
- How This Practical Is Examined: the Slip, the Journal and the Viva 1
- The Laboratory from Zero: Python, IDLE, and Your First Program 5
- Practical 1: Input, Output, and the Year You Turn 100 10
- Practical 1 continued: Even or Odd, and the SGPI Grade Ladder 15
- Practical 2: the Fibonacci Series, and the Sum of the Digits 21
- Practical 3: Arrays, Basic Operations, Indexing and Slicing 27
- Practical 3 continued: Mathematical Functions, Aliasing and Copying 33
- Practical 4: NumPy Slicing, Basic and Advanced Indexing 41
- Practical 4 continued: the Dimensions and Attributes of an Array 48
- Practical 5: Functions, Armstrong Numbers and Palindromes 55
- Practical 5 continued: Recursion, and the Lambda 62
- Practical 6: Counting the Characters and the Words in a String 68
- Practical 6 continued: the Geometry Module, and pointyShapeVolume 73
- Practical 7: a Common Member, and a Dictionary Sorted by Value 79
- Practical 8: the Tuple Return, Area and Circumference 86
- Practical 8 continued: Text Files, Binary Files, and the Last n Lines 92
Contents continued
Module I continued 1. Write programs for the following:
- Practical 9: Counting a Word in a File with a Regular Expression 100
- Practical 9 continued: Extracting Every Hyperlink from an HTML File 106
- Practical 10: Comparing Two Dates in DD/MM/YYYY Form 113
- Practical 10 continued: Measuring Execution Time, and the Calendar Module 119
Module II 1. Array Operations: Write a program to implement basic array operations:
- Python for Data Structures, and the Cost of an Operation 126
- Practical 1: Array Operations, Insert, Delete and Linear Search 137
- Practical 2: Building a Singly Linked List 144
- Practical 2 continued: Deleting a Node from a Linked List 152
- Practical 3: a Stack over an Array 160
- Practical 3 continued: Infix to Postfix with a Stack 167
- Practical 4: a Queue over an Array 177
- Practical 4 continued: Simulating a Customer Service Queue 186
- Practical 5: the Binary Search Tree, Create, Insert and Search 193
- Practical 6: Tree Traversal, Pre-order, In-order and Post-order 203
- Practical 7: a Hash Table with Separate Chaining 212
Contents continued
Module II continued 1. Array Operations: Write a program to implement basic array operations:
- Practical 8: Bubble, Insertion and Selection Sort Compared 224
- Practical 9: Linear and Binary Search Compared 233
- Practical 10: the Combined Application 243
- If Your College Runs Module 2 in C 253
Module J The journal, the viva and the practical examination
- Keeping the Journal, and What Goes on the Page 268
- A Worked Practical Slip: Q1, Q2 and Q3 275
- The Viva: the Questions Asked at the Table 285
Page 1 onwards
297 pages in this book. The cover and the contents are above. Everything from page one is in the pass.
- Notes
- 2026 Edition, as per the latest syllabus. 297 pages.
Every chapter in the notes: 38 chapters across 3 modules
Module I Python: MU's ten programming exercises 20 chapters
- 1 How This Practical Is Examined: the Slip, the Journal and the Viva pages 1 to 4
- 2 The Laboratory from Zero: Python, IDLE, and Your First Program pages 5 to 9
- 3 Practical 1: Input, Output, and the Year You Turn 100 pages 10 to 14
- 4 Practical 1 continued: Even or Odd, and the SGPI Grade Ladder pages 15 to 20
- 5 Practical 2: the Fibonacci Series, and the Sum of the Digits pages 21 to 26
- 6 Practical 3: Arrays, Basic Operations, Indexing and Slicing pages 27 to 32
- 7 Practical 3 continued: Mathematical Functions, Aliasing and Copying pages 33 to 40
- 8 Practical 4: NumPy Slicing, Basic and Advanced Indexing pages 41 to 47
- 9 Practical 4 continued: the Dimensions and Attributes of an Array pages 48 to 54
- 10 Practical 5: Functions, Armstrong Numbers and Palindromes pages 55 to 61
- 11 Practical 5 continued: Recursion, and the Lambda pages 62 to 67
- 12 Practical 6: Counting the Characters and the Words in a String pages 68 to 72
- 13 Practical 6 continued: the Geometry Module, and pointyShapeVolume pages 73 to 78
- 14 Practical 7: a Common Member, and a Dictionary Sorted by Value pages 79 to 85
- 15 Practical 8: the Tuple Return, Area and Circumference pages 86 to 91
- 16 Practical 8 continued: Text Files, Binary Files, and the Last n Lines pages 92 to 99
- 17 Practical 9: Counting a Word in a File with a Regular Expression pages 100 to 105
- 18 Practical 9 continued: Extracting Every Hyperlink from an HTML File pages 106 to 112
- 19 Practical 10: Comparing Two Dates in DD/MM/YYYY Form pages 113 to 118
- 20 Practical 10 continued: Measuring Execution Time, and the Calendar Module pages 119 to 125
Module II Data Structures: MU's ten exercises, in Python and in C 15 chapters
- 21 Python for Data Structures, and the Cost of an Operation pages 126 to 136
- 22 Practical 1: Array Operations, Insert, Delete and Linear Search pages 137 to 143
- 23 Practical 2: Building a Singly Linked List pages 144 to 151
- 24 Practical 2 continued: Deleting a Node from a Linked List pages 152 to 159
- 25 Practical 3: a Stack over an Array pages 160 to 166
- 26 Practical 3 continued: Infix to Postfix with a Stack pages 167 to 176
- 27 Practical 4: a Queue over an Array pages 177 to 185
- 28 Practical 4 continued: Simulating a Customer Service Queue pages 186 to 192
- 29 Practical 5: the Binary Search Tree, Create, Insert and Search pages 193 to 202
- 30 Practical 6: Tree Traversal, Pre-order, In-order and Post-order pages 203 to 211
- 31 Practical 7: a Hash Table with Separate Chaining pages 212 to 223
- 32 Practical 8: Bubble, Insertion and Selection Sort Compared pages 224 to 232
- 33 Practical 9: Linear and Binary Search Compared pages 233 to 242
- 34 Practical 10: the Combined Application pages 243 to 252
- 35 If Your College Runs Module 2 in C pages 253 to 267
Module J The journal, the viva and the practical examination 3 chapters
- 36 Keeping the Journal, and What Goes on the Page pages 268 to 274
- 37 A Worked Practical Slip: Q1, Q2 and Q3 pages 275 to 284
- 38 The Viva: the Questions Asked at the Table pages 285 to 297
Not written yet, and included the day each one lands: Field Project.
Questions
Can I download it?
No, and that is deliberate. Everything is read on the site, on any device you sign in on. There is nothing to lose, and nothing to forward.
How long do I keep it?
365 days from the day you pay.
What if the syllabus changes?
Revisions are written into the same subject, and you keep reading the current version for as long as your access runs.
Can I buy one subject instead of the whole semester?
Not yet. It is sold per semester, one price for the notes of the 5 subjects written so far.
Is this enough to pass?
It covers the prescribed syllabus. It is not a substitute for your lectures or your textbooks, and we would not claim otherwise.
Can I get a refund?
Once a semester is unlocked it stays unlocked, and there is no way to hand back reading you have already done. That is why this page shows you so much before you pay: the cover of every subject, every chapter in it by name, and the page each one starts on. Read that first and buy only if it is the book you want. If something genuinely went wrong, being charged twice or paying and having nothing unlock, write to us and we refund it: the cancellation and refund policy sets out which cases those are.
Does it renew automatically?
No. It is one payment for one semester. Nothing is charged again unless you choose to buy another semester yourself.
Where our readers study
Students from 221 colleges affiliated to the University of Mumbai read munotes. Here are some of them.