4th Sem Assignments
4th Sem Assignments
4th Sem Assignments
Semester: - 4th
Assignment Questions
Subject Name/ Code: -ADA (CS-4002)
UNIT-1
Q.1Why worst case analysis of algorithms is most important than average case analysis? [CO1]
Q.2 Solve the recurrence relation, where T(1)=1 and T(n) for n>=2 satisfies [CO1]
1. T(n)=3T(n/2)+n
2. T(n)=2T(n/2)+n
3. T(n)=7T(n/3)+ cn
Q.3 Explain various asymptotic methods used to represent the rate of growth of running time of
algorithms. [CO2]
Q.4 Explain a sorting algorithm that use divide and conquer method. [CO3]
Q.5 Write an algorithm to search an item in a linear list. If there are n nodes in the list, what is
the running time of your algorithm? [CO1, CO2]
Q.1 Write a greedy algorithm for the knapsack problem. Apply it on the following instance of the
knapsack problem. [CO3]
1 2 3
2 3 4
3 4 5
4 5 6
Char A B C D E
Q.4 Find an Optimal merge pattern for 11 files whose length are: 28,32,12,5,84,5,3,9,35,3,11.
[CO1]
Q.1 Define dynamic programming. Write the general procedure of dynamic programming. What
are the features of dynamic programming? [CO3,CO1]
Q. 2 Consider five items along with their respective weights and values [CO2]
I=<I1, I2,I3, I4,I5> W=<5,10,20,30,40> V=<30,20,100,90,160>
and W=60. Find the solution to the 0/1knapsack problem
Q.3 What s Multistage graph problem? Discuss its solution based on dynamic programming
approach. [CO1]
Q.4 Design a 3-stage with devices D1, D2 and D3. The cost are Rs. 30,15 and 20 respectively.
Total system cost cannot be more than Rs 105. Reliability of each device is 0.9, 0.8 and 0.5
respectively. Determine the best design, its reliability and cost of the system using dynamic
programming. [CO3]
Assignment Questions
Subject Name/ Code: - Software engineering (CS-4003)
UNIT-1
2. Discuss the problem might a S/W development organization face when it does not follow
any life cycle model during development of large S/W products?(CO1)
5. Explain how a S/W development effort is initiated and finally terminated in the Spiral
Model.(CO1)
3. Identify the principles that are used in developing a good software requirement
specification (SRS)?(CO2,CO3)
UNIT-3
4. Develop and draw DFD for at least three levels of Library Management
System.(CO2,CO3)
7. Class Diagram
8. Sequence Diagram
9. Activity Diagram
Assignment Questions
Subject Name/ Code: - CSO (CS-4004)
UNIT-1
2. Define the register transfer languages? Explain few RTL statements with example
[CO-1]
UNIT-2
6. Draw a composite arithmetic circuit that implements all arithmetic micro operations.
Explain the same clearly
[CO-2]
UNIT-3
1. Explain strobe control in asynchronous data transfer along with hand shaking
problem?
[CO-3]
2. Define different modes of data transfer between central computer and I/O device.
[CO-1,3]
3. Describe the function of USB, SCSI and PIC bus.
[CO-1,3]
4. Explain Daisy chaining with diagram.
[CO-3]
5. Explain DMA Controller with the block diagram?
[CO-3]
6. List out the major function of I/O processor
[CO-3]
Assignment Questions
Subject Name/ Code: - Operating System (CS-4005)
UNIT I
1. Define an operating system. State and explain the basic functions or services of an
operating system. CO-1
4. Define system calls. Explain briefly about various types of system calls provided by an
operating system. CO-1
2. Describe how a file directory system can be organized into one level, two level and tree
structure directories. CO-2
5. Consider that a disk drive has 5,000 cylinders, numbered 0 to 4,999. The drive is
currently serving request at cylinder 143, and the previous request was at cylinder 125.
The queue of pending requests in FIFO order is: 86, 1470, 913, 1774, 948, 1509, 1022,
1750, 130
Starting from the current head position, what is the total distance (in cylinders) that the
disk arm moves to satisfy all pending requests for each of the following disk scheduling
algorithms?
A. FCFS CO-2
B. SSTF
C. SCAN
D. C-SCAN
E. LOOK
F. C-LOOK
UNIT III
1. Define process and process control block. Draw the process state transition diagram and
explain it. CO-4
2. Consider the following set of processes with the length of the CPU burst time given in
milliseconds: CO-4
Process Burst Time Priority Arrival Time
P1 10 3 0
P2 1 1 1
P3 2 3 2
P4 1 4 3
P5 5 2 4
The processes are assumed to have arrived in the order p1, p2, p3, p4, p5 all at time 0.
a) Draw four Gantt charts illustrating the execution of these processes using FCFS, SJF,
pre-emptive priority and RR (quantum=1) scheduling.
b) Calculate average turnaround time and average waiting time of each process for each
of the scheduling algorithms in part. CO-4
3. (a)Define thread? Differentiate between user level and kernel level threads. CO-4
4. (a)Discuss various free space management techniques with their advantages and
disadvantages. CO-3
(b)Given memory partitions of 100K, 500K, 200K, 300K, and 600K (in order), how
would each of the First-fit, Best-fit, and Worst-fit algorithms place processes of 212K,
417K, 112K, and 426K (in order). Explain Which algorithm makes the most efficient use
of memory. CO-3
5. Consider a logical address space of eight pages of 1024 words each mapped onto a
physical memory of 32 frames CO-3
a) How many bits are in the logical address.
b) How many bits are in the physical address
6. (a)Consider the main memory with capacity of 3 frames .Assume that the pages of a
process are referenced in the order as given below: CO-3
1,2,3,4,2,1,5,6,2,1,2,3,7,6,3,2,1,2,3,6
Which one is better page repleacement algorithm :FIFO or LRU or optimal?