sameernotes commited on
Commit
271d759
Β·
verified Β·
1 Parent(s): f8cc8a4

Update src/streamlit_app.py

Browse files
Files changed (1) hide show
  1. src/streamlit_app.py +659 -162
src/streamlit_app.py CHANGED
@@ -1,233 +1,730 @@
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}")
 
1
  import streamlit as st
2
  import json
3
 
4
+ # Page configuration
5
+ st.set_page_config(
6
+ page_title="M.Sc. CS Syllabus Explorer",
7
+ page_icon="πŸŽ“",
8
+ layout="wide",
9
+ initial_sidebar_state="expanded"
10
+ )
11
+
12
+ # Custom CSS for beautiful UI
13
+ st.markdown("""
14
+ <style>
15
+ .main {
16
+ padding-top: 2rem;
17
+ }
18
+
19
+ .stApp {
20
+ background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
21
+ }
22
+
23
+ .main-header {
24
+ background: linear-gradient(90deg, #4facfe, #00f2fe);
25
+ padding: 2rem;
26
+ border-radius: 15px;
27
+ text-align: center;
28
+ margin-bottom: 2rem;
29
+ box-shadow: 0 8px 32px rgba(0,0,0,0.1);
30
+ }
31
+
32
+ .main-header h1 {
33
+ color: white;
34
+ font-size: 2.5rem;
35
+ margin: 0;
36
+ text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
37
+ }
38
+
39
+ .main-header p {
40
+ color: white;
41
+ font-size: 1.2rem;
42
+ margin: 0.5rem 0 0 0;
43
+ opacity: 0.9;
44
+ }
45
+
46
+ .paper-card {
47
+ background: white;
48
+ padding: 1.5rem;
49
+ border-radius: 15px;
50
+ margin: 1rem 0;
51
+ box-shadow: 0 4px 20px rgba(0,0,0,0.1);
52
+ border-left: 5px solid #4facfe;
53
+ transition: transform 0.3s ease;
54
+ }
55
+
56
+ .paper-card:hover {
57
+ transform: translateY(-5px);
58
+ box-shadow: 0 8px 30px rgba(0,0,0,0.15);
59
+ }
60
+
61
+ .unit-card {
62
+ background: #f8f9fa;
63
+ padding: 1rem;
64
+ border-radius: 10px;
65
+ margin: 0.5rem 0;
66
+ border-left: 3px solid #28a745;
67
+ }
68
+
69
+ .topic-item {
70
+ background: #e3f2fd;
71
+ padding: 0.5rem;
72
+ margin: 0.3rem 0;
73
+ border-radius: 8px;
74
+ border-left: 2px solid #2196f3;
75
+ }
76
+
77
+ .sidebar .sidebar-content {
78
+ background: white;
79
+ border-radius: 10px;
80
+ padding: 1rem;
81
+ }
82
+
83
+ .metric-card {
84
+ background: linear-gradient(135deg, #667eea, #764ba2);
85
+ color: white;
86
+ padding: 1rem;
87
+ border-radius: 10px;
88
+ text-align: center;
89
+ margin: 0.5rem 0;
90
+ }
91
+
92
+ .search-box {
93
+ background: white;
94
+ border-radius: 10px;
95
+ padding: 1rem;
96
+ margin: 1rem 0;
97
+ box-shadow: 0 2px 10px rgba(0,0,0,0.1);
98
+ }
99
+ </style>
100
+ """, unsafe_allow_html=True)
101
+
102
+ # Syllabus data structure
103
  syllabus_data = {
104
+ "Programming in Java": {
105
  "UNIT-I": {
106
+ "Introduction": [
107
+ "History and features of Java",
108
+ "Difference between C, C++ & JAVA",
109
+ "JAVA and Internet, WWW, Web Browsers",
110
+ "Java support system, Java Environment",
111
+ "JDK, JVM, Byte code"
112
+ ],
113
+ "Java Programming Basics": [
114
+ "Structure of Java program",
115
+ "JAVA tokens and Statements",
116
+ "Constants & Variables",
117
+ "Data types",
118
+ "Operators",
119
+ "Command line arguments"
120
+ ],
121
+ "Java Statements & Arrays": [
122
+ "if and switch statement",
123
+ "while, do-while and for loops",
124
+ "Introduction to arrays, types of arrays, new operator",
125
+ "Strings, String class & its methods",
126
+ "Vectors"
127
+ ],
128
+ "Classes & Objects": [
129
+ "Specifying classes",
130
+ "Methods and fields",
131
+ "Creating objects",
132
+ "Passing objects to methods, returning objects",
133
+ "Static fields & methods",
134
+ "Constructors",
135
+ "Garbage collection",
136
+ "Overloading methods & constructors",
137
+ "this keyword"
138
+ ]
139
  },
140
  "UNIT-II": {
141
+ "Inheritance": [
142
+ "Specifying sub class",
143
+ "Types of inheritance",
144
+ "Visibility control: public, private, protected, package",
145
+ "super keyword",
146
+ "Overriding methods",
147
+ "Dynamic method dispatch",
148
+ "Abstract methods and classes",
149
+ "final methods & classes"
150
+ ],
151
+ "Packages & Interfaces": [
152
+ "Introduction to packages, naming conventions",
153
+ "package statement, creating packages",
154
+ "import statement, accessing package",
155
+ "Use of CLASSPATH, adding class to package, hiding classes",
156
+ "Interface, implementing interfaces, multiple interfaces"
157
+ ],
158
+ "Multithreading": [
159
+ "Creation threads",
160
+ "Extending Thread class, implements Runnable interface",
161
+ "Stopping and blocking thread",
162
+ "Thread life cycle",
163
+ "Thread priorities & Thread synchronization",
164
+ "Using Thread methods"
165
+ ]
166
  },
167
  "UNIT-III": {
168
+ "Exception Handling": [
169
+ "Managing errors, types of errors, exceptions",
170
+ "Syntax of exception handling code: try, catch, throw, throws and finally statements",
171
+ "Multiple catch & nested try statements"
172
+ ],
173
+ "Java Input Output": [
174
+ "Java I/O package",
175
+ "Byte/Character Stream",
176
+ "Buffered reader / writer",
177
+ "File reader / writer",
178
+ "File Sequential / Random",
179
+ "Reading numeric, character & strings data from keyboard"
180
+ ],
181
+ "Applet Programming": [
182
+ "Applet Vs. Application",
183
+ "Creating applets, life cycle",
184
+ "Local & remote applets",
185
+ "<APPLET> tag & its attributes",
186
+ "Adding applet to HTML file, Running applet"
187
+ ]
188
  },
189
  "UNIT-IV": {
190
+ "Abstract Windows Toolkit (AWT)": [
191
+ "Components and Graphics",
192
+ "Containers, Frames and Panels",
193
+ "Layout Managers: Border layout, Flow layout, Grid layout, Card layout",
194
+ "AWT components",
195
+ "Event delegation Model: Event source and handler, Event categories, Listeners, Interfaces",
196
+ "Controls: text box, radio buttons, checkboxes, lists, choice, command buttons, text area etc."
197
+ ],
198
+ "JDBC (Java Database Connectivity)": [
199
+ "Types of JDBC drivers",
200
+ "Writing JDBC applications",
201
+ "Types of statement objects: Statement, PreparedStatement and CallableStatement",
202
+ "Types of resultset",
203
+ "Inserting and updating records",
204
+ "JDBC and AWT"
205
+ ]
206
  },
207
  "UNIT-V": {
208
+ "Networking with Java": [
209
+ "Networking basics, Sockets, port",
210
+ "Internet addressing",
211
+ "java.net – networking classes and interfaces",
212
+ "Implementing TCP/IP based Server and Client"
213
+ ],
214
+ "Servlets": [
215
+ "Introduction Servlet API Overview",
216
+ "Writing and running Simple Servlet, Servlet Life cycle",
217
+ "Generic Servlet, HTTPServlet",
218
+ "ServletConfig, ServletContest",
219
+ "Writing Servlet to handle Get and Post methods"
220
+ ]
221
  }
222
  },
223
+ "Computer Graphics": {
224
  "UNIT-I": {
225
+ "Graphics Systems Overview": [
226
+ "Introduction of computer Graphics and its applications",
227
+ "Overview of Graphics systems"
228
+ ],
229
+ "Video Display Devices": [
230
+ "Raster scan display, Raster scan systems, video controller, Raster scan display processor",
231
+ "Random scan display, random scan systems",
232
+ "Color CRT monitor",
233
+ "Flat panel display"
234
+ ],
235
+ "Interactive Input Devices": [
236
+ "Logical classification of input devices",
237
+ "Keyboard, mouse, Trackball and spaceball, Joysticks, Image scanner, Light pens"
238
+ ],
239
+ "Graphics Foundations": [
240
+ "Graphics software",
241
+ "Coordinates representations",
242
+ "Graphics functions"
243
+ ]
244
  },
245
  "UNIT-II": {
246
+ "Drawing Algorithms": [
247
+ "Line drawing algorithms: DDA, Bresenham's",
248
+ "Circle generating: Mid-point circle algorithm",
249
+ "Ellipse generating: Polynomials",
250
+ "Scan-line polygon fill",
251
+ "Boundary fill"
252
+ ]
253
  },
254
  "UNIT-III": {
255
+ "2D Transformations": [
256
+ "Basic transformations: Translation, Rotation, Scaling",
257
+ "Matrix representations & homogeneous co-ordinates",
258
+ "Composite transformations: Reflection"
259
+ ],
260
+ "2D Viewing and Clipping": [
261
+ "Two dimensional viewing",
262
+ "Two dimensional clipping: Line, Polygon, Curve, Text"
263
+ ],
264
+ "3D Graphics": [
265
+ "3D-transformation, Projection, Viewing, Clipping"
266
+ ]
267
  },
268
  "UNIT-IV": {
269
+ "Spline Representation": [
270
+ "Cubic spline",
271
+ "Bezier curve, Bezier surfaces",
272
+ "Beta spline",
273
+ "B-spline surfaces, B-spline curve"
274
+ ],
275
+ "Hidden Surface Removal": [
276
+ "Hidden surfaces",
277
+ "Hidden lines",
278
+ "Z-buffer"
279
+ ]
280
  },
281
  "UNIT-V": {
282
+ "Fractals Geometry": [
283
+ "Fractal generation procedure",
284
+ "Classification of Fractal",
285
+ "Fractal dimension",
286
+ "Fractal construction methods"
287
+ ],
288
+ "Color and Shading": [
289
+ "Color models: XYZ, RGB, YIQ, CMY & HSV",
290
+ "Shading algorithms",
291
+ "Shading model",
292
+ "Illumination model",
293
+ "Gouraud shading",
294
+ "Phong shading"
295
+ ]
296
  }
297
  },
298
+ "LINUX": {
299
  "UNIT-I": {
300
+ "Introduction to Unix/Linux": [
301
+ "Introduction to Multi-user System",
302
+ "Emergency and history of Unix",
303
+ "Feature and benefits, Versions of Unix"
304
+ ],
305
+ "System Structure": [
306
+ "Hardware requirements",
307
+ "Kernel and its function",
308
+ "Introduction to System calls and Shell"
309
+ ],
310
+ "File System": [
311
+ "Feature of Unix File System",
312
+ "Concept of i-node table, links",
313
+ "Commonly used commands (who, pwd, cd, mkdir, rm, ls, mv, lp, chmod, cp, grep, sed, awk, pr, lex, yacc, make)",
314
+ "Getting started (login / logout)",
315
+ "File system management, file operation, system calls, buffer cache"
316
+ ],
317
+ "Vi Editor": [
318
+ "Intro to text processing",
319
+ "Command and edit mode, invoking vi",
320
+ "Command structure, deleting and inserting line",
321
+ "Deleting and replacing character, searching strings, yanking",
322
+ "Running shell command, command macros",
323
+ "Set windows, set auto indent, set number, intro to exrc file"
324
+ ]
325
  },
326
  "UNIT-II": {
327
+ "Shell Programming": [
328
+ "Introduction to shell feature, wild card characters",
329
+ "I/O redirections, standard error redirection",
330
+ "System and user created shell variables, profile files",
331
+ "Pipes/tee, background processing",
332
+ "Command line arguments, command substitution, read statement",
333
+ "Conditional execution of commands",
334
+ "Special shell variables ($#, #?, $* etc.)",
335
+ "Shift commands",
336
+ "Loops and decision making: for, while and until",
337
+ "Choice making using case...esac",
338
+ "Decision making if...fi",
339
+ "Using test, string comparison, numerical comparison, logical operation, using expr"
340
+ ]
341
  },
342
  "UNIT-III": {
343
+ "Advanced Shell": [
344
+ "Features, changing the login shell",
345
+ "cshrc, login, logout files",
346
+ "Setting environment variables",
347
+ "History and alias mechanism",
348
+ "Command line arguments",
349
+ "Redirection/appending safely, noclobber, noglob, ignore eof",
350
+ "Directory stacks (pushd, popd)",
351
+ "Feature of other shell (rsh, vsh)"
352
+ ],
353
+ "Process Control": [
354
+ "Process management, process states and transition",
355
+ "Regions and control of process",
356
+ "Sleep and waking",
357
+ "Process creation, process killing",
358
+ "Signals",
359
+ "System boot and init process",
360
+ "Traps",
361
+ "Setting process priorities"
362
+ ]
363
  },
364
  "UNIT-IV": {
365
+ "Inter-process Communication": [
366
+ "I/O Sub system, terminal drives, disk drives",
367
+ "Messages, shared memory, semaphores",
368
+ "Memory management, swapping, demand paging"
369
+ ],
370
+ "System Calls and Unix-C Interface": [
371
+ "File handling calls: access(), open(), create(), read(), write(), close(), fseek()",
372
+ "Process control system calls: kill(), exec(), fork(), wait(), signal(), exit()",
373
+ "Comparing stdio library and calls"
374
+ ]
375
  },
376
  "UNIT-V": {
377
+ "System Administration": [
378
+ "Process and Scheduling",
379
+ "Security",
380
+ "Basic System Administration: Adding a User, User Passwords, Delete of a User, Adding a Group, Deleting a Group, Super User, Startup and Shutdown",
381
+ "Advanced System Administration: Managing Disk Space, Backup and Restore, Managing System Services"
382
+ ],
383
+ "Xwindows": [
384
+ "Introduction to Xwindows concept"
385
+ ]
386
  }
387
  },
388
+ "Image Processing": {
389
  "UNIT-I": {
390
+ "Digital Image Fundamentals": [
391
+ "Introduction",
392
+ "An image model",
393
+ "Sampling & quantization",
394
+ "Basic relationships between Pixels",
395
+ "Imaging geometry"
396
+ ]
397
  },
398
  "UNIT-II": {
399
+ "Image Transforms": [
400
+ "Properties of 2 – D Fourier transform",
401
+ "FFT algorithm and other separable image transforms",
402
+ "Walsh transforms",
403
+ "Hadamard, Cosine, Haar, Slant transforms, KL transforms and their properties"
404
+ ]
405
  },
406
  "UNIT-III": {
407
+ "Image Enhancement": [
408
+ "Background",
409
+ "Enhancement by point processing, histogram processing",
410
+ "Spatial filtering and enhancement in frequency domain",
411
+ "Color image processing"
412
+ ],
413
+ "Image Filtering and Restoration": [
414
+ "Degradation model",
415
+ "Diagnolisation of circulant and block circulate matrices",
416
+ "Algebraic approach to restoration",
417
+ "Inverse filtering, least mean squares and interactive restoration",
418
+ "Geometric transformations"
419
+ ]
420
  },
421
  "UNIT-IV": {
422
+ "Image Compression": [
423
+ "Fundamentals",
424
+ "Image compression modes",
425
+ "Error free compression, lossy compression",
426
+ "Image compression standards"
427
+ ],
428
+ "Image Segmentation": [
429
+ "Detection of discontinuities, edge linking and boundary detection",
430
+ "Thresholding",
431
+ "Region – oriented segmentation",
432
+ "Use of motion in segmentation"
433
+ ]
434
  },
435
  "UNIT-V": {
436
+ "Representation and Description": [
437
+ "Various schemes for representation",
438
+ "Boundary descriptors",
439
+ "Regional descriptors"
440
+ ],
441
+ "Image Reconstruction": [
442
+ "Image reconstruction from Projections",
443
+ "Radon Transforms",
444
+ "Convolution/Filter back – Project Algorithms"
445
+ ]
446
  }
447
  },
448
+ "Object Oriented Analysis And Design": {
449
  "UNIT-I": {
450
+ "Introduction to OOAD": [
451
+ "Two views of software Developments: SSAD and OOAD",
452
+ "Why Object –Orientation?",
453
+ "Object and classes",
454
+ "Abstraction and encapsulation",
455
+ "Methods and Message",
456
+ "Interfaces",
457
+ "Inheritance and Polymorphism",
458
+ "Access Control",
459
+ "The Business case for OO Developments"
460
+ ],
461
+ "Object Oriented Methodologies": [
462
+ "Object Oriented Design – Booch",
463
+ "Object Modeling Techniques – Rumbaugh",
464
+ "Object – Oriented Analysis – Coad-Yourdan",
465
+ "Object – Oriented Software Engineering – Ivar Jacobson"
466
+ ]
467
  },
468
  "UNIT-II": {
469
+ "Unified Approach": [
470
+ "Diagramming and Notational Techniques using the UML",
471
+ "UML Notation",
472
+ "Analysis Diagramming Techniques (Introduction to all ten diagrams)",
473
+ "Design Diagramming Techniques",
474
+ "Generalization/Specialization, Aggregation and composition, Association, Cardinality, Navigability, Icons, relationships and adornments"
475
+ ],
476
+ "Development Process": [
477
+ "Rational Unified Process",
478
+ "Four Major phases: Inception, Elaboration, Construction, Transition"
479
+ ],
480
+ "Requirements Engineering": [
481
+ "Problem analysis, Understanding Stockholders need",
482
+ "Type of requirements",
483
+ "Use-case Model: Writing Requirements"
484
+ ]
485
  },
486
  "UNIT-III": {
487
+ "Analysis Phase": [
488
+ "Behavioral Analysis",
489
+ "Domain Analysis or Business Object Analysis",
490
+ "Use-case Driven Object Oriented analysis: The UML approach",
491
+ "Develop use-case Model",
492
+ "Use-case Description",
493
+ "Documentation, Activity Diagram",
494
+ "Identify the classes"
495
+ ],
496
+ "Class Identification Approaches": [
497
+ "'Noun Phrase' approach",
498
+ "'Conman Class Pattern' approach",
499
+ "'CRC' approach",
500
+ "Use case Driven Approach"
501
+ ],
502
+ "Relationships": [
503
+ "Containment and Composition, Aggregation, Inheritance",
504
+ "SubTypes and IS-A Hierarchies",
505
+ "Association and Link Relationships",
506
+ "Diagramming System Events"
507
+ ]
508
  },
509
  "UNIT-IV": {
510
+ "Design Phases": [
511
+ "Translating Analysis Concept into Design",
512
+ "Optimizing classes and Objects: The Multi-tiered Architecture View",
513
+ "Mapping System functions to objects",
514
+ "Object to Object Visibility",
515
+ "Collaboration Diagram",
516
+ "Sequential Diagram",
517
+ "Specification Class Diagram",
518
+ "Specifying Object Interfaces",
519
+ "Designing the Data Access layer",
520
+ "Design User Interface layer",
521
+ "Designing System Interfaces, Controls and Security"
522
+ ]
523
  },
524
  "UNIT-V": {
525
+ "Design Refinement": [
526
+ "Designing for Extensibility",
527
+ "Design for reusability",
528
+ "Portioning class space",
529
+ "Checking Completeness and correctness"
530
+ ],
531
+ "Database Issues": [
532
+ "The Cood Data Management Domain",
533
+ "Object Persistence",
534
+ "Object-oriented Database Management System",
535
+ "Object-Oriented verses Relational Database",
536
+ "Mapping object to Relational Data structure"
537
+ ],
538
+ "Testing": [
539
+ "Introduction to Testing Strategies",
540
+ "Impact of Object Orientation on Testing",
541
+ "Testing Business Process",
542
+ "Design Matrix",
543
+ "Discovering reusable pattern"
544
+ ]
545
  }
546
  }
547
  }
548
 
549
+ def main():
550
+ # Header
551
+ st.markdown("""
552
+ <div class="main-header">
553
+ <h1>πŸŽ“ M.Sc. Computer Science</h1>
554
+ <p>Third Semester Syllabus Explorer</p>
555
+ </div>
556
+ """, unsafe_allow_html=True)
557
 
558
+ # Sidebar
559
+ st.sidebar.title("πŸ“š Navigation")
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
560
 
561
+ # Search functionality
562
+ search_term = st.sidebar.text_input("πŸ” Search Topics", placeholder="Enter topic to search...")
563
+
564
+ # Paper selection
565
+ selected_paper = st.sidebar.selectbox(
566
+ "Select Paper",
567
+ ["All Papers"] + list(syllabus_data.keys()),
568
+ index=0
569
+ )
570
+
571
+ # Unit filter
572
+ if selected_paper != "All Papers":
573
+ units = list(syllabus_data[selected_paper].keys())
574
+ selected_unit = st.sidebar.selectbox(
575
+ "Select Unit",
576
+ ["All Units"] + units,
577
+ index=0
578
+ )
579
+ else:
580
+ selected_unit = "All Units"
581
+
582
+ # Statistics
583
+ st.sidebar.markdown("### πŸ“Š Quick Stats")
584
+ total_papers = len(syllabus_data)
585
+ total_units = sum(len(paper_data) for paper_data in syllabus_data.values())
586
+ total_topics = sum(
587
+ len(unit_data)
588
+ for paper_data in syllabus_data.values()
589
+ for unit_data in paper_data.values()
590
+ )
591
+
592
+ col1, col2, col3 = st.sidebar.columns(3)
593
+ with col1:
594
+ st.markdown(f"""
595
+ <div class="metric-card">
596
+ <h3>{total_papers}</h3>
597
+ <p>Papers</p>
598
+ </div>
599
+ """, unsafe_allow_html=True)
600
+ with col2:
601
+ st.markdown(f"""
602
+ <div class="metric-card">
603
+ <h3>{total_units}</h3>
604
+ <p>Units</p>
605
+ </div>
606
+ """, unsafe_allow_html=True)
607
+ with col3:
608
+ st.markdown(f"""
609
+ <div class="metric-card">
610
+ <h3>{total_topics}</h3>
611
+ <p>Topics</p>
612
+ </div>
613
+ """, unsafe_allow_html=True)
 
 
614
 
615
+ # Main content area
616
+ if selected_paper == "All Papers":
617
+ display_all_papers(search_term)
618
+ else:
619
+ display_single_paper(selected_paper, selected_unit, search_term)
620
 
621
+ def display_all_papers(search_term=""):
622
+ """Display all papers with search functionality"""
623
+ st.markdown("## πŸ“– All Papers Overview")
624
+
625
+ for paper_name, paper_data in syllabus_data.items():
626
+ # Check if paper matches search
627
+ if search_term and not matches_search(paper_name, paper_data, search_term):
628
+ continue
629
+
630
+ with st.expander(f"πŸ“„ {paper_name}", expanded=False):
631
+ display_paper_content(paper_data, search_term)
632
 
633
+ def display_single_paper(paper_name, selected_unit="All Units", search_term=""):
634
+ """Display a single paper with optional unit filtering"""
635
+ st.markdown(f"## πŸ“„ {paper_name}")
636
+
637
+ paper_data = syllabus_data[paper_name]
638
+
639
+ if selected_unit == "All Units":
640
+ display_paper_content(paper_data, search_term)
641
+ else:
642
+ if selected_unit in paper_data:
643
+ unit_data = {selected_unit: paper_data[selected_unit]}
644
+ display_paper_content(unit_data, search_term)
645
 
646
+ def display_paper_content(paper_data, search_term=""):
647
+ """Display content of a paper"""
648
+ for unit_name, unit_data in paper_data.items():
649
+ # Check if unit matches search
650
+ if search_term and not matches_search_unit(unit_name, unit_data, search_term):
651
+ continue
652
+
653
+ st.markdown(f"""
654
+ <div class="unit-card">
655
+ <h3>πŸ“š {unit_name}</h3>
656
+ </div>
657
+ """, unsafe_allow_html=True)
658
+
659
+ for topic_name, topic_items in unit_data.items():
660
+ # Check if topic matches search
661
+ if search_term and not matches_search_topic(topic_name, topic_items, search_term):
662
+ continue
663
+
664
+ with st.expander(f"πŸ“– {topic_name}", expanded=False):
665
+ for item in topic_items:
666
+ # Highlight search terms
667
+ if search_term and search_term.lower() in item.lower():
668
+ highlighted_item = item.replace(
669
+ search_term,
670
+ f"**{search_term}**"
671
+ )
672
+ st.markdown(f"""
673
+ <div class="topic-item">
674
+ β€’ {highlighted_item}
675
+ </div>
676
+ """, unsafe_allow_html=True)
677
+ else:
678
+ st.markdown(f"""
679
+ <div class="topic-item">
680
+ β€’ {item}
681
+ </div>
682
+ """, unsafe_allow_html=True)
683
 
684
+ def matches_search(paper_name, paper_data, search_term):
685
+ """Check if paper matches search term"""
686
+ search_term = search_term.lower()
687
+
688
+ # Check paper name
689
+ if search_term in paper_name.lower():
690
+ return True
691
+
692
+ # Check unit and topic content
693
+ for unit_data in paper_data.values():
694
+ if matches_search_unit("", unit_data, search_term):
695
+ return True
696
+
697
+ return False
698
 
699
+ def matches_search_unit(unit_name, unit_data, search_term):
700
+ """Check if unit matches search term"""
701
+ search_term = search_term.lower()
702
+
703
+ # Check unit name
704
+ if search_term in unit_name.lower():
705
+ return True
706
+
707
+ # Check topics
708
+ for topic_name, topic_items in unit_data.items():
709
+ if matches_search_topic(topic_name, topic_items, search_term):
710
+ return True
711
+
712
+ return False
713
 
714
+ def matches_search_topic(topic_name, topic_items, search_term):
715
+ """Check if topic matches search term"""
716
+ search_term = search_term.lower()
717
+
718
+ # Check topic name
719
+ if search_term in topic_name.lower():
720
+ return True
721
+
722
+ # Check topic items
723
+ for item in topic_items:
724
+ if search_term in item.lower():
725
+ return True
726
+
727
+ return False
728
 
729
+ if __name__ == "__main__":
730
+ main()