sameernotes commited on
Commit
f8cc8a4
Β·
verified Β·
1 Parent(s): 14b6e5c

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +171 -379
src/streamlit_app.py CHANGED
@@ -1,441 +1,233 @@
1
  import streamlit as st
 
2
 
3
- # Streamlit app configuration
4
- st.set_page_config(page_title="M.Sc. (CS) Third Semester Syllabus", layout="wide")
5
-
6
- # Title and description
7
- st.title("M.Sc. (CS) Third Semester Syllabus")
8
- st.write("Explore the syllabus for the Third Semester of M.Sc. (Computer Science). Select a subject to view its units and detailed topics.")
9
-
10
- # Dictionary to store the syllabus data
11
- syllabus = {
12
- "Programming in Java": {
13
  "UNIT-I": {
14
- "Introduction": [
15
- "History and features of Java",
16
- "Difference between C, C++ & JAVA",
17
- "JAVA and Internet, WWW, Web Browsers",
18
- "Java support system, Java Environment",
19
- "JDK, JVM, Byte code"
20
- ],
21
- "Java Programming Basics": [
22
- "Structure of Java program",
23
- "JAVA tokens and Statements",
24
- "Constants & Variables",
25
- "Data types",
26
- "Operators",
27
- "Command line arguments"
28
- ],
29
- "Java Statements & Arrays": [
30
- "if and switch statement",
31
- "while, do-while and for loops",
32
- "Introduction to arrays, types of arrays, new operator",
33
- "Strings, String class & its methods",
34
- "Vectors"
35
- ],
36
- "Classes & Objects": [
37
- "Specifying classes",
38
- "Methods and fields",
39
- "Creating objects",
40
- "Passing objects to methods, returning objects",
41
- "Static fields & methods",
42
- "Constructors",
43
- "Garbage collection",
44
- "Overloading methods & constructors",
45
- "this keyword"
46
- ]
47
  },
48
  "UNIT-II": {
49
- "Inheritance": [
50
- "Specifying sub class",
51
- "Types of inheritance",
52
- "Visibility control: public, private, protected, package",
53
- "super keyword",
54
- "Overriding methods",
55
- "Dynamic method dispatch",
56
- "Abstract methods and classes",
57
- "final methods & classes"
58
- ],
59
- "Packages & Interfaces": [
60
- "Introduction to packages, naming conventions",
61
- "package statement, creating packages",
62
- "import statement, accessing package",
63
- "Use of CLASSPATH, adding class to package, hiding classes",
64
- "Interface, implementing interfaces, multiple interfaces"
65
- ],
66
- "Multithreading": [
67
- "Creation threads",
68
- "Extending Thread class, implements Runnable interface",
69
- "Stopping and blocking thread",
70
- "Thread life cycle",
71
- "Thread priorities & Thread synchronization",
72
- "Using Thread methods"
73
- ]
74
  },
75
  "UNIT-III": {
76
- "Exception Handling": [
77
- "Managing errors, types of errors, exceptions",
78
- "Syntax of exception handling code: try, catch, throw, throws and finally statements",
79
- "Multiple catch & nested try statements"
80
- ],
81
- "Java Input Output": [
82
- "Java I/O package",
83
- "Byte/Character Stream",
84
- "Buffered reader / writer",
85
- "File reader / writer",
86
- "File Sequential / Random",
87
- "Reading numeric, character & strings data from keyboard"
88
- ],
89
- "Applet Programming": [
90
- "Applet Vs. Application",
91
- "Creating applets, life cycle",
92
- "Local & remote applets",
93
- "<APPLET> tag & its attributes",
94
- "Adding applet to HTML file, Running applet"
95
- ]
96
  },
97
  "UNIT-IV": {
98
- "Abstract Windows Toolkit (AWT)": [
99
- "Components and Graphics",
100
- "Containers, Frames and Panels",
101
- "Layout Managers: Border layout, Flow layout, Grid layout, Card layout",
102
- "AWT components",
103
- "Event delegation Model: Event source and handler, Event categories, Listeners, Interfaces",
104
- "Controls: text box, radio buttons, checkboxes, lists, choice, command buttons, text area etc."
105
- ],
106
- "JDBC (Java Database Connectivity)": [
107
- "Types of JDBC drivers",
108
- "Writing JDBC applications",
109
- "Types of statement objects: Statement, PreparedStatement and CallableStatement",
110
- "Types of resultset",
111
- "Inserting and updating records",
112
- "JDBC and AWT"
113
- ]
114
  },
115
  "UNIT-V": {
116
- "Networking with Java": [
117
- "Networking basics, Sockets, port",
118
- "Internet addressing",
119
- "java.net – networking classes and interfaces",
120
- "Implementing TCP/IP based Server and Client"
121
- ],
122
- "Servlets": [
123
- "Introduction Servlet API Overview",
124
- "Writing and running Simple Servlet, Servlet Life cycle",
125
- "Generic Servlet, HTTPServlet",
126
- "ServletConfig, ServletContest",
127
- "Writing Servlet to handle Get and Post methods"
128
- ]
129
  }
130
  },
131
- "Computer Graphics": {
132
  "UNIT-I": {
133
- "Overview": [
134
- "Introduction of computer Graphics and its applications",
135
- "Overview of Graphics systems"
136
- ],
137
- "Video Display Devices": [
138
- "Raster scan display, Raster scan systems, video controller, Raster scan display processor",
139
- "Random scan display, random scan systems",
140
- "Color CRT monitor",
141
- "Flat panel display"
142
- ],
143
- "Interactive Input Devices": [
144
- "Logical classification of input devices",
145
- "Keyboard, mouse, Trackball and spaceball, Joysticks, Image scanner, Light pens"
146
- ],
147
- "Graphics Software and Coordinates": [
148
- "Graphics software",
149
- "Coordinates representations",
150
- "Graphics functions"
151
- ]
152
  },
153
  "UNIT-II": {
154
- "Algorithms": [
155
- "Line drawing algorithms: DDA, Bresenham’s",
156
- "Circle generating: Mid-point circle algorithm",
157
- "Ellipse generating: Polynomials",
158
- "Scan-line polygon fill",
159
- "Boundary fill"
160
- ]
161
  },
162
  "UNIT-III": {
163
- "Transformations and Clipping": [
164
- "Basic transformations: Translation, Rotation, Scaling",
165
- "Matrix representations & homogeneous co-ordinates",
166
- "Composite transformations: Reflection",
167
- "Two dimensional viewing",
168
- "Two dimensional clipping: Line, Polygon, Curve, Text",
169
- "3D-transformation, Projection, Viewing, Clipping"
170
- ]
171
  },
172
  "UNIT-IV": {
173
- "Splines and Hidden Surfaces": [
174
- "Spline representation: Cubic spline, Bezier curve, Bezier surfaces, Beta spline, B-spline surfaces, B-spline curve",
175
- "Hidden surfaces",
176
- "Hidden lines",
177
- "Z-buffer"
178
- ]
179
  },
180
  "UNIT-V": {
181
- "Fractals and Shading": [
182
- "Fractals geometry: Fractal generation procedure, Classification of Fractal, Fractal dimension, Fractal construction methods",
183
- "Color models: XYZ, RGB, YIQ, CMY & HSV",
184
- "Shading algorithms: Shading model, Illumination model, Gouraud shading, Phong shading"
185
- ]
186
  }
187
  },
188
- "LINUX": {
189
  "UNIT-I": {
190
- "Introduction": [
191
- "Introduction to Multi-user System",
192
- "Emergency and history of Unix",
193
- "Feature and benefits, Versions of Unix"
194
- ],
195
- "System Structure": [
196
- "Hardware requirements",
197
- "Kernel and its function",
198
- "Introduction to System calls and Shell"
199
- ],
200
- "File System": [
201
- "Feature of Unix File System",
202
- "Concept of i-node table, links",
203
- "Commonly used commands (e.g., who, pwd, cd, mkdir, rm, ls, mv, lp, chmod, cp, grep, sed, awk, pr, lex, yacc, make)",
204
- "Getting started (login / logout)",
205
- "File system management, file operation, system calls, buffer cache"
206
- ],
207
- "Vi Editor": [
208
- "Intro to text processing",
209
- "Command and edit mode, invoking vi",
210
- "Command structure, deleting and inserting line",
211
- "Deleting and replacing character, searching strings, yanking",
212
- "Running shell command, command macros",
213
- "Set windows, set auto indent, set number, intro to exrc file"
214
- ]
215
  },
216
  "UNIT-II": {
217
- "Shell Programming": [
218
- "Introduction to shell feature, wild card characters",
219
- "I/O redirections, standard error redirection",
220
- "System and user created shell variables, profile files",
221
- "Pipes/tee, background processing",
222
- "Command line arguments, command substitution, read statement",
223
- "Conditional execution of commands",
224
- "Special shell variables ($ #, #?, $ * etc.)",
225
- "Shift commands",
226
- "Loops and decision making: for, while and until",
227
- "Choice making using case...esac",
228
- "Decision making if...fi",
229
- "Using test, string comparison, numerical comparison, logical operation, using expr"
230
- ]
231
  },
232
  "UNIT-III": {
233
- "Advanced Shell": [
234
- "Features, changing the login shell",
235
- "cshrc, login, logout files",
236
- "Setting environment variables",
237
- "History and alias mechanism",
238
- "Command line arguments",
239
- "Redirection/appending safely, noclobber, noglob, ignore eof",
240
- "Directory stacks (pushd, popd)",
241
- "Feature of other shell (rsh, vsh)"
242
- ],
243
- "Process Control": [
244
- "Process management, process states and transition",
245
- "Regions and control of process",
246
- "Sleep and waking",
247
- "Process creation, process killing",
248
- "Signals",
249
- "System boot and init process",
250
- "Traps",
251
- "Setting process priorities"
252
- ]
253
  },
254
  "UNIT-IV": {
255
- "Inter-process Communication": [
256
- "I/O Sub system, terminal drives, disk drives",
257
- "Messages, shared memory, semaphores",
258
- "Memory management, swapping, demand paging"
259
- ],
260
- "System Calls and Unix-C Interface": [
261
- "File handling calls: access(), open(), create(), read(), write(), close(), fseek()",
262
- "Process control system calls: kill(), exec(), fork(), wait(), signal(), exit()",
263
- "Comparing stdio library and calls"
264
- ]
265
  },
266
  "UNIT-V": {
267
- "System Administration": [
268
- "Process and Scheduling",
269
- "Security",
270
- "Basic System Administration: Adding a User, User Passwords, Delete of a User, Adding a Group, Deleting a Group, Super User, Startup and Shutdown",
271
- "Advanced System Administration: Managing Disk Space, Backup and Restore, Managing System Services"
272
- ],
273
- "Xwindows": [
274
- "Introduction to Xwindows concept"
275
- ]
276
  }
277
  },
278
- "Image Processing": {
279
  "UNIT-I": {
280
- "Digital Image Fundamentals": [
281
- "Introduction",
282
- "An image model",
283
- "Sampling & quantization",
284
- "Basic relationships between Pixels",
285
- "Imaging geometry"
286
- ]
287
  },
288
  "UNIT-II": {
289
- "Image Transforms": [
290
- "Properties of 2 – D Fourier transform",
291
- "FFT algorithm and other separable image transforms",
292
- "Walsh transforms",
293
- "Hadamard, Cosine, Haar, Slant transforms, KL transforms and their properties"
294
- ]
295
  },
296
  "UNIT-III": {
297
- "Image Enhancement": [
298
- "Background",
299
- "Enhancement by point processing, histogram processing",
300
- "Spatial filtering and enhancement in frequency domain",
301
- "Color image processing"
302
- ],
303
- "Image Filtering and Restoration": [
304
- "Degradation model",
305
- "Diagnolisation of circulant and block circulate matrices",
306
- "Algebraic approach to restoration",
307
- "Inverse filtering, least mean squares and interactive restoration",
308
- "Geometric transformations"
309
- ]
310
  },
311
  "UNIT-IV": {
312
- "Image Compression": [
313
- "Fundamentals",
314
- "Image compression modes",
315
- "Error free compression, lossy compression",
316
- "Image compression standards"
317
- ],
318
- "Image Segmentation": [
319
- "Detection of discontinuities, edge linking and boundary detection",
320
- "Thresholding",
321
- "Region – oriented segmentation",
322
- "Use of motion in segmentation"
323
- ]
324
  },
325
  "UNIT-V": {
326
- "Representation and Description": [
327
- "Various schemes for representation",
328
- "Boundary descriptors",
329
- "Regional descriptors"
330
- ],
331
- "Image Reconstruction": [
332
- "Image reconstruction from Projections",
333
- "Radon Transforms",
334
- "Convolution/Filter back – Project Algorithms"
335
- ]
336
  }
337
  },
338
- "Object Oriented Analysis And Design": {
339
  "UNIT-I": {
340
- "Introduction": [
341
- "Two views of software Developments: SSAD and OOAD",
342
- "Why Object –Orientation?: Object and classes, Abstraction and encapsulation, Methods and Message, Interfaces, Inheritance and Polymorphism, Access Control",
343
- "The Business case for OO Developments"
344
- ],
345
- "Object Oriented Methodologies": [
346
- "Object Oriented Design – Booch",
347
- "Object Modeling Techniques – Rumbaugh",
348
- "Object – Oriented Analysis – Coad-Yourdan",
349
- "Object – Oriented Software Engineering – Ivar Jacobson"
350
- ]
351
  },
352
  "UNIT-II": {
353
- "Unified Approach": [
354
- "Diagramming and Notational Techniques using the UML",
355
- "UML Notation",
356
- "Analysis Diagramming Techniques (Introduction to all ten diagrams)",
357
- "Design Diagramming Techniques",
358
- "Generalization/Specialization, Aggregation and composition, Association, Cardinality, Navigability, Icons, relationships and adornments"
359
- ],
360
- "Object-Oriented Systems Development Process": [
361
- "Rational Unified Process",
362
- "Four Major phases: Inception, Elaboration, Construction, Transition"
363
- ],
364
- "Requirements Engineering": [
365
- "Problem analysis, Understanding Stockholders need",
366
- "Type of requirements",
367
- "Use-case Model: Writing Requirements"
368
- ]
369
  },
370
  "UNIT-III": {
371
- "Analysis": [
372
- "Behavioral Analysis",
373
- "Domain Analysis or Business Object Analysis",
374
- "Use-case Driven Object Oriented analysis: The UML approach",
375
- "Develop use-case Model",
376
- "Use-case Description",
377
- "Documentation, Activity Diagram",
378
- "Identify the classes",
379
- "Introduction to different approaches for identifying classes: 'Noun Phrase' approach OR 'Conman Class Pattern' approach OR 'CRC' approach OR Use case Driven Approach",
380
- "Containment and Composition, Aggregation, Inheritance",
381
- "SubTypes and IS-A Hierarchies",
382
- "Association and Link Relationships",
383
- "Diagramming System Events"
384
- ]
385
  },
386
  "UNIT-IV": {
387
- "Design Phases": [
388
- "Translating Analysis Concept into Design",
389
- "Optimizing classes and Objects: The Multi-tiered Architecture View",
390
- "Mapping System functions to objects",
391
- "Object to Object Visibility",
392
- "Collaboration Diagram",
393
- "Sequential Diagram",
394
- "Specification Class Diagram",
395
- "Specifying Object Interfaces",
396
- "Designing the Data Access layer",
397
- "Design User Interface layer",
398
- "Designing System Interfaces, Controls and Security"
399
- ]
400
  },
401
  "UNIT-V": {
402
- "Design Refinement": [
403
- "Designing for Extensibility",
404
- "Design for reusability",
405
- "Portioning class space",
406
- "Checking Completeness and correctness"
407
- ],
408
- "Persistent Object and Database Issues": [
409
- "The Cood Data Management Domain",
410
- "Object Persistence",
411
- "Object-oriented Database Management System",
412
- "Object-Oriented verses Relational Database",
413
- "Mapping object to Relational Data structure"
414
- ],
415
- "Testing": [
416
- "Introduction to Testing Strategies",
417
- "Impact of Object Orientation on Testing",
418
- "Testing Business Process",
419
- "Design Matrix",
420
- "Discovering reusable pattern"
421
- ]
422
  }
423
  }
424
  }
425
 
426
- # Sidebar for subject selection
427
- st.sidebar.header("Select Subject")
428
- subject = st.sidebar.selectbox("Choose a subject:", list(syllabus.keys()))
429
 
430
- # Display selected subject's units and topics
431
- st.header(subject)
432
- for unit, sections in syllabus[subject].items():
433
- with st.expander(unit):
434
- for section, topics in sections.items():
435
- st.subheader(section)
436
- for topic in topics:
437
- st.write(f"- {topic}")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
438
 
439
- # Footer
 
 
 
 
440
  st.markdown("---")
441
- st.markdown("Developed using Streamlit | M.Sc. (CS) Syllabus Viewer")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  import streamlit as st
2
+ import json
3
 
4
+ # --- DATA STRUCTURE ---
5
+ # I have converted your text into a Python dictionary.
6
+ # This is the most crucial step for creating a dynamic app.
7
+ # This separates the data from the presentation logic.
8
+ syllabus_data = {
9
+ "Paper I: Programming in Java": {
 
 
 
 
10
  "UNIT-I": {
11
+ "Introduction": ["History and features of Java", "Difference between C, C++ & JAVA", "JAVA and Internet, WWW, Web Browsers", "Java support system, Java Environment", "JDK, JVM, Byte code"],
12
+ "Java Programming Basics": ["Structure of Java program", "JAVA tokens and Statements", "Constants & Variables", "Data types", "Operators", "Command line arguments"],
13
+ "Java Statements & Arrays": ["`if` and `switch` statement", "`while`, `do-while` and `for` loops", "Introduction to arrays, types of arrays, `new` operator", "Strings, `String` class & its methods", "Vectors"],
14
+ "Classes & Objects": ["Specifying classes", "Methods and fields", "Creating objects", "Passing objects to methods, returning objects", "Static fields & methods", "Constructors", "Garbage collection", "Overloading methods & constructors", "`this` keyword"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
15
  },
16
  "UNIT-II": {
17
+ "Inheritance": ["Specifying sub class", "Types of inheritance", "Visibility control: `public`, `private`, `protected`, `package`", "`super` keyword", "Overriding methods", "Dynamic method dispatch", "Abstract methods and classes", "`final` methods & classes"],
18
+ "Packages & Interfaces": ["Introduction to packages, naming conventions", "`package` statement, creating packages", "`import` statement, accessing package", "Use of CLASSPATH, adding class to package, hiding classes", "Interface, implementing interfaces, multiple interfaces"],
19
+ "Multithreading": ["Creation threads", "Extending `Thread` class, implements `Runnable` interface", "Stopping and blocking thread", "Thread life cycle", "Thread priorities & Thread synchronization", "Using `Thread` methods"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  },
21
  "UNIT-III": {
22
+ "Exception Handling": ["Managing errors, types of errors, exceptions", "Syntax of exception handling code: `try`, `catch`, `throw`, `throws` and `finally` statements", "Multiple `catch` & nested `try` statements"],
23
+ "Java Input Output": ["Java I/O package", "Byte/Character Stream", "Buffered reader / writer", "File reader / writer", "File Sequential / Random", "Reading numeric, character & strings data from keyboard"],
24
+ "Applet Programming": ["Applet Vs. Application", "Creating applets, life cycle", "Local & remote applets", "`<APPLET>` tag & its attributes", "Adding applet to HTML file, Running applet"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
25
  },
26
  "UNIT-IV": {
27
+ "Abstract Windows Toolkit (AWT)": ["Components and Graphics", "Containers, Frames and Panels", "Layout Managers: Border layout, Flow layout, Grid layout, Card layout", "AWT components", "Event delegation Model: Event source and handler, Event categories, Listeners, Interfaces", "Controls: text box, radio buttons, checkboxes, lists, choice, command buttons, text area etc."],
28
+ "JDBC (Java Database Connectivity)": ["Types of JDBC drivers", "Writing JDBC applications", "Types of statement objects: `Statement`, `PreparedStatement` and `CallableStatement`", "Types of resultset", "Inserting and updating records", "JDBC and AWT"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
29
  },
30
  "UNIT-V": {
31
+ "Networking with Java": ["Networking basics, Sockets, port", "Internet addressing", "`java.net` – networking classes and interfaces", "Implementing TCP/IP based Server and Client"],
32
+ "Servlets": ["Introduction Servlet API Overview", "Writing and running Simple Servlet, Servlet Life cycle", "Generic Servlet, `HTTPServlet`", "`ServletConfig`, `ServletContest`", "Writing Servlet to handle Get and Post methods"]
 
 
 
 
 
 
 
 
 
 
 
33
  }
34
  },
35
+ "Paper II: Computer Graphics": {
36
  "UNIT-I": {
37
+ "Introduction": ["Introduction of computer Graphics and its applications", "Overview of Graphics systems", "Video display devices (Raster scan, Random scan, Color CRT, Flat panel)", "Interactive input devices (Keyboard, mouse, Joysticks, etc.)", "Graphics software", "Coordinates representations", "Graphics functions"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
38
  },
39
  "UNIT-II": {
40
+ "Algorithms": ["Line drawing algorithms: DDA, Bresenham’s", "Circle generating: Mid-point circle algorithm", "Ellipse generating: Polynomials", "Scan-line polygon fill", "Boundary fill"]
 
 
 
 
 
 
41
  },
42
  "UNIT-III": {
43
+ "Transformations & Viewing": ["Basic transformations: Translation, Rotation, Scaling", "Matrix representations & homogeneous co-ordinates", "Composite transformations: Reflection", "Two dimensional viewing", "Two dimensional clipping: Line, Polygon, Curve, Text", "3D-transformation, Projection, Viewing, Clipping"]
 
 
 
 
 
 
 
44
  },
45
  "UNIT-IV": {
46
+ "Curves & Surfaces": ["Spline representation (Cubic, Bezier, Beta, B-spline)", "Hidden surfaces", "Hidden lines", "Z-buffer"]
 
 
 
 
 
47
  },
48
  "UNIT-V": {
49
+ "Advanced Topics": ["Fractals geometry (Generation, Classification, Dimension, Construction)", "Color models: XYZ, RGB, YIQ, CMY & HSV", "Shading algorithms (Illumination models, Gouraud, Phong)"]
 
 
 
 
50
  }
51
  },
52
+ "Paper III: LINUX": {
53
  "UNIT-I": {
54
+ "Introduction & Basics": ["Introduction to Multi-user System, History of Unix", "System Structure: Kernel, System calls, Shell", "File System: i-node, links, commands (`who`, `pwd`, `cd`, etc.)", "Vi Editor: Command/edit mode, basic operations"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
55
  },
56
  "UNIT-II": {
57
+ "Shell Programming": ["Wild cards, I/O redirection, Pipes", "Shell variables, profile files", "Command line arguments, command substitution", "Conditional execution (`if...fi`)", "Loops (`for`, `while`, `until`)", "Choice making (`case...esac`)"]
 
 
 
 
 
 
 
 
 
 
 
 
 
58
  },
59
  "UNIT-III": {
60
+ "Advanced Shell & Process Control": ["Advanced Shell features (`cshrc`, `login`, `logout`)", "History and alias mechanism", "Directory stacks (`pushd`, `popd`)", "Process management, states, and transition", "Process creation (`fork`) and killing (`kill`)", "Signals and traps"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
61
  },
62
  "UNIT-IV": {
63
+ "Inter-process Communication & System Calls": ["I/O Sub system", "IPC: Messages, shared memory, semaphores", "Memory management: swapping, demand paging", "File handling calls: `open()`, `read()`, `write()`, `close()`, `fseek()`", "Process control calls: `kill()`, `exec()`, `fork()`, `wait()`, `signal()`"]
 
 
 
 
 
 
 
 
 
64
  },
65
  "UNIT-V": {
66
+ "System Administration & Xwindows": ["Process and Scheduling, Security", "Basic Admin: Adding/Deleting Users & Groups, Super User", "Advanced Admin: Managing Disk Space, Backup & Restore", "Introduction to Xwindows concept"]
 
 
 
 
 
 
 
 
67
  }
68
  },
69
+ "Paper IV: Image Processing": {
70
  "UNIT-I": {
71
+ "Digital Image Fundamentals": ["Introduction, An image model", "Sampling & quantization", "Basic relationships between Pixels", "Imaging geometry"]
 
 
 
 
 
 
72
  },
73
  "UNIT-II": {
74
+ "Image Transforms": ["Properties of 2-D Fourier transform", "FFT algorithm and other separable image transforms", "Walsh, Hadamard, Cosine, Haar, Slant, KL transforms"]
 
 
 
 
 
75
  },
76
  "UNIT-III": {
77
+ "Image Enhancement & Restoration": ["Enhancement by point processing, histogram processing", "Spatial filtering and frequency domain enhancement", "Color image processing", "Degradation model, Inverse filtering, Restoration techniques"]
 
 
 
 
 
 
 
 
 
 
 
 
78
  },
79
  "UNIT-IV": {
80
+ "Image Compression & Segmentation": ["Fundamentals, Compression modes (Error free, Lossy)", "Image compression standards", "Detection of discontinuities, edge linking", "Thresholding, Region-oriented segmentation"]
 
 
 
 
 
 
 
 
 
 
 
81
  },
82
  "UNIT-V": {
83
+ "Representation & Description": ["Representation schemes, Boundary/Regional descriptors", "Image reconstruction from Projections", "Radon Transforms", "Convolution/Filter back-Project Algorithms"]
 
 
 
 
 
 
 
 
 
84
  }
85
  },
86
+ "Paper V: Object Oriented Analysis And Design": {
87
  "UNIT-I": {
88
+ "Introduction to OOAD": ["SSAD vs OOAD", "Why Object-Orientation? (Classes, Abstraction, Inheritance, Polymorphism)", "The Business case for OO Developments", "OO Methodologies (Booch, Rumbaugh, Coad-Yourdan, Jacobson)"]
 
 
 
 
 
 
 
 
 
 
89
  },
90
  "UNIT-II": {
91
+ "Unified Approach & Process": ["UML Notation and Diagramming Techniques", "Rational Unified Process (Inception, Elaboration, Construction, Transition)", "Requirements Engineering", "Use-case Model: Writing Requirements"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
  },
93
  "UNIT-III": {
94
+ "Analysis": ["Behavioral Analysis, Domain Analysis", "Use-case Driven OO analysis", "Identifying classes (Noun Phrase, CRC, etc.)", "Relationships: Aggregation, Composition, Association, Inheritance"]
 
 
 
 
 
 
 
 
 
 
 
 
 
95
  },
96
  "UNIT-IV": {
97
+ "Design Phases": ["Translating Analysis to Design", "Multi-tiered Architecture View", "Object Visibility, Collaboration & Sequential Diagrams", "Designing Data Access, User Interface, and System Interface layers"]
 
 
 
 
 
 
 
 
 
 
 
 
98
  },
99
  "UNIT-V": {
100
+ "Refinement & Testing": ["Design for Extensibility and Reusability", "Persistent Objects and Database Issues (OODBMS vs RDBMS)", "Testing Strategies, Impact of OO on Testing", "Testing Business Process, Design Matrix"]
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
101
  }
102
  }
103
  }
104
 
 
 
 
105
 
106
+ # --- PAGE CONFIGURATION ---
107
+ st.set_page_config(
108
+ page_title="M.Sc. CS Syllabus",
109
+ page_icon="πŸŽ“",
110
+ layout="centered",
111
+ initial_sidebar_state="auto"
112
+ )
113
+
114
+
115
+ # --- CUSTOM CSS FOR A BEAUTIFUL UI ---
116
+ def local_css(file_name):
117
+ with open(file_name) as f:
118
+ st.markdown(f"<style>{f.read()}</style>", unsafe_allow_html=True)
119
+
120
+ # You can create a style.css file or just embed it directly
121
+ st.markdown("""
122
+ <style>
123
+ /* Main app styling */
124
+ .stApp {
125
+ background-color: #f0f2f6; /* Light grey background */
126
+ }
127
+
128
+ /* Title styling */
129
+ h1 {
130
+ color: #0c356a; /* Dark blue */
131
+ text-align: center;
132
+ font-family: 'Verdana', sans-serif;
133
+ }
134
+
135
+ /* Sidebar styling */
136
+ .st-emotion-cache-16txtl3 {
137
+ background-color: #ffffff;
138
+ border-right: 2px solid #e0e0e0;
139
+ }
140
+ .st-emotion-cache-16txtl3 .st-emotion-cache-1y4p8pa {
141
+ padding-top: 2rem;
142
+ }
143
+
144
+ /* Radio button styling in sidebar */
145
+ .st-emotion-cache-16txtl3 .st-emotion-cache-ltfnpr {
146
+ background-color: #e6f3ff;
147
+ border-radius: 0.5rem;
148
+ padding: 10px;
149
+ margin-bottom: 10px;
150
+ }
151
+
152
+ /* Expander styling */
153
+ .st-emotion-cache-sh2krr {
154
+ border: 1px solid #dcdcdc;
155
+ border-radius: 0.75rem;
156
+ box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
157
+ margin-bottom: 1rem;
158
+ background-color: #ffffff;
159
+ }
160
+ .st-emotion-cache-sh2krr summary {
161
+ font-size: 1.1rem;
162
+ font-weight: 600;
163
+ color: #2c3e50; /* Darker text for header */
164
+ }
165
+
166
+ /* Tab styling */
167
+ .st-emotion-cache-1qg05j { /* Tab container */
168
+ border-bottom: 2px solid #0c356a;
169
+ }
170
+ button[data-baseweb="tab"][aria-selected="true"] {
171
+ background-color: #0c356a;
172
+ color: white;
173
+ border-radius: 0.5rem 0.5rem 0 0;
174
+ }
175
+
176
+ </style>
177
+ """, unsafe_allow_html=True)
178
+
179
 
180
+ # --- APP LAYOUT ---
181
+
182
+ # --- HEADER ---
183
+ st.title("πŸŽ“ M.Sc. (CS) Syllabus Navigator")
184
+ st.markdown("Welcome! Select a subject from the sidebar to explore the syllabus for the **Third Semester**.")
185
  st.markdown("---")
186
+
187
+
188
+ # --- SIDEBAR NAVIGATION ---
189
+ st.sidebar.title("πŸ“š Subjects")
190
+ st.sidebar.markdown("Choose a paper to view its syllabus:")
191
+
192
+ # Get list of papers from the data
193
+ papers = list(syllabus_data.keys())
194
+ selected_paper = st.sidebar.radio(
195
+ label="M.Sc. (CS) Papers",
196
+ options=papers,
197
+ label_visibility="collapsed" # Hides the 'M.Sc. (CS) Papers' label above radio
198
+ )
199
+
200
+ st.sidebar.markdown("---")
201
+ st.sidebar.info("This app provides a user-friendly view of the M.Sc. (CS) syllabus.")
202
+ st.sidebar.markdown("Made with ❀️ by Streamlit")
203
+
204
+
205
+ # --- MAIN CONTENT AREA ---
206
+
207
+ if selected_paper:
208
+ # Get the details for the selected paper
209
+ paper_details = syllabus_data[selected_paper]
210
+
211
+ # Display the paper title in the main area
212
+ st.header(f"πŸ“œ {selected_paper}")
213
+
214
+ # Create tabs for each unit
215
+ unit_names = list(paper_details.keys())
216
+ tabs = st.tabs([f"**{name}**" for name in unit_names])
217
+
218
+ # Populate each tab with its content
219
+ for i, tab in enumerate(tabs):
220
+ with tab:
221
+ unit_name = unit_names[i]
222
+ unit_content = paper_details[unit_name]
223
+
224
+ if not unit_content:
225
+ st.write("No topics listed for this unit.")
226
+ continue
227
+
228
+ # Use expanders for each topic within the unit
229
+ for topic, sub_topics in unit_content.items():
230
+ with st.expander(f"**{topic}**", expanded=(list(unit_content.keys()).index(topic) == 0)):
231
+ # The first expander in each tab will be open by default
232
+ for item in sub_topics:
233
+ st.markdown(f"- {item}")