B.sc. Computer Science UG Syllabus SEP
B.sc. Computer Science UG Syllabus SEP
AUTONOMOUS
COURSE MATRIX
Semes ter
Teach Inter
End Exa Tot al
ing nal
Course/ Paper m Ma Cre
Sem Title of the Paper Hours Asse
Code rks dits
/ week ssme
nt
Python Lab
24BSC-CS-4P 4 40 10 50 2
Course Outcomes
Upon successful completion of the course, the student will be able:
CO1 To understand algorithmic strategies for enhancing problem-solving proficiency
CO2 Demonstrate problem solving tools and techniques using C.
CO3 To analyze the given problems and use appropriate algorithms.
CO4 To implement sorting and searching techniques to develop programs.
UNIT –1 11 Hours
Introduction: The Role of Algorithms in computing, Algorithms as a technology, analyzing
algorithms, Designing algorithms, Growth of Functions, Asymptotic notation, Standard
notations and common functions.
UNIT-II 11 Hours
C Programming: Getting Started, Variables, Operators and Arithmetic expressions. Input and Output: Stand
ard input and output, formatted input and output. Selection statements: Statements and Blocks, If, If-else, if-
else-if ladder, nested if, switch. Control Structure: while loop, for loop, do-while loop, break and continue, goto
and labels.
Factoring Methods: Finding the square root of a number, the smallest Divisor of an integer, the greatest
common divisor of two integers, computing the prime factor of an integer, raising a number to a large power.
11 Hours
UNIT-III
Arrays and Functions: One Dimensional array, Two-Dimensional array, Multidimensional array.
Declaration, definition, calling. Functions with parameters- actual and formal parameters, categories
of functions, recursive functions.
Array Techniques: Array order reversal, Finding the maximum number in a set, removal of
duplicates from an ordered array, partitioning an array, finding the kth smallest element,
multiplication of two matrices.
Structures, Unions and Pointers: Structures: Declaration, initialization, accessing. Array of structures.
Union: Declaration, initialization, accessing, difference between structure and union.
Pointers and address, pointer arithmetic, pointers to functions, pointers to arrays.
Files: Sequential and random files, Text and binary files.
Textbook
Reference Books
II 7 5 15 21
III 5 3 15 25
IV 4 2 20 20
TOTAL 26 20 60 86
ESE
1. To read the radius of the circle and to find area and circumference.
2. To check if a given number is positive, negative or zero.
13. To find the length of the string without using built-in function.
14. To demonstrate string functions.
15. To calculate NCR using function.
16. To read a string and to find the number of alphabets, digits, vowels, consonants,
space and special characters.
17. To swap two numbers using pointers.
18. To demonstrate student structure to read and display records of n students.
(From the above list 80% of the programs can be executed in a semester)
BSC-CS-2: DATA STRUCTURE
Course Outcome
CO1: Understand basic concepts of data structures.
CO2: Analyzing and exploring various ways of storing data using Array and Linked list.
CO3: Demonstrate stack and queue data structures and their applications
CO4: Analyze and implement various nonlinear data structures.
UNIT I 11 Hours
Introduction and Overview: Definition, Elementary data organization, Data Structures, data
Structures operations, Abstract data types, control structures, Complexity of algorithms, asymptotic
notations for complexity of algorithms.
Arrays: Definition, Linear arrays, arrays as ADT, Representation of Linear Arrays in Memory,
Traversing Linear arrays, Inserting and deleting, multi-dimensional arrays, Matrices and Sparse
matrices. Sorting: Bubble sort, Sorting by selection, sorting by insertion.
Searching: Linear Search, Binary search, Hash search. Introduction to pattern matching algorithm.
UNIT II 11 Hours
Linked list: Definition, Representation of Singly Linked List in memory, Traversing a
Singly linked list, Searching in a Singly linked list, Memory allocation, Garbage collection,
Insertion into a singly linked list, Deletion from a singly linked list; Doubly linked list, Header
linked list, Circular linked list.
Queues: Definition, Array representation of queue, Linked list representation of queues. Types of
queue: Simple queue, Circular queue, Double-ended queue, Priority queue, Operations on Queues,
Applications of queues.
UNIT IV 12 Hours
Binary Trees: Definitions, Tree Search, Traversal of Binary Tree, Tree Sort, Building a Binary
Search Tree, Height Balance: AVL Trees, Contiguous Representation of Binary Trees: Heaps, Red
Black Tree: Insertion and Deletion, External Searching: B-Trees, Applications of Trees.
1 Seymour Lipschutz, “Data Structures with C”, Schaum’s outLines, Tata Mc Graw Hill,
2011.
2 Robert Kruse, C.L.Tondo, Bruce Leung,Shashi Mogalla,“Data Structures and Program
Design using C”, Pearson Education, 2009
Reference Books
1 Mark Allen Weiss,“ Data Structures and Algorithm Analysis in C”, Second Edition,
Pearson Education,2013
2 Forouzan,“A Structured Programming Approach using C”,2nd Edition,
Cengage LearningIndia,2008.
Course Articulation Matrix: Mapping of Course Outcomes (COs) with Program Outcomes (POs12)
II 7 5 15 21
III 5 3 15 25
IV 4 2 20 20
TOTAL 26 20 60 86
ESE
4. Perform the Insertion Sort on the input {75,8,1,16,48,3,7,0} and display the output in
descending order.
5. Perform the Selection Sort on the input {75,8,1,16,48,3,7,0} and display the output in
descending order.
6. Write a program to insert the elements {61,16,8,27} into a singly linked list and delete
8,61,27 from the list. Display your list after each insertion and deletion.
7. Write a program to insert the elements {45, 34, 10, 63,3} into linear queue and delete three
elements from the list. Display your list after each insertion and deletion.
8. Write a program to insert the elements {61,16,8,27} into circular queue and delete 4 elements
from the list. Display your list after each insertion and deletion.
11. Write a program to demonstrate the working of stack using linked list.
12. Write a program to convert an infix expression x^y/(5*z)+2 to its postfix expression
14. Write a program to create a binary tree with the elements {18,15,40,50,30,17,41} after
creation insert 45 and 19 into tree and delete 15,17 and 41 from tree. Display the tree on
each insertion and deletion operation.
15. Write a program to create binary search tree with the elements {2,5,1,3,9,0,6} and perform
inorder, preorder and post order traversal.
16. Write a program to Sort the following elements using heap sort {9.16,32,8,4,1,5,8,0}.
17. Write a program to push 5,9,34,17,32 into stack and pop 3 times from the stack, also display
the popped numbers.
18. Write a program to insert/retrieve an entry into hash/ from a hash table with open addressing
using linear probing.
(From the above list 80% of the programs can be executed in a semester)