Question Papers
Question Papers
___________
MARKS
Q.1 (a) Differentiate the list and dictionary data types of python by their 03
characteristics along with example in brief.
(b) What do you mean by slicing operation in string of python? Write an 04
example of slicing to fetch first name and last name from full name
of person and display it.
(c) Which are the basic activities we performed as a part of data science 07
pipeline? Summarize and explain in brief.
Q.2 (a) What is the core competencies needed to become a data scientist? 03
Explain in brief.
(b) Compare and summarize four different coding styles supported by 04
Python language.
(c) Summarize the characteristics of NumPy, Pandas, Scikit-Learn and 07
matplotlib libraries along with their usage in brief.
OR
(c) What do you mean by prototyping? List the phases of prototyping 07
and experimentation process and explain in brief.
Q.3 (a) Compare the numpy and pandas on the basis of their characteristics 03
and usage.
(b) For what purpose sampling is used. Demonstrate random sampling 04
with example.
(c) What is the need of streaming the data? Explain data uploading and 07
streaming data with example.
OR
Q.3 (a) How XPath is useful for analysis of html data? Explain in brief. 03
(b) Define term n-gram. Explain the TF-IDF techniques. 04
(c) List the techniques to handle missing data. Explain various 07
techniques with example.
Q.4 (a) List various types of graph/chart available in the pyplot of matplotlib 03
library for data visualization. Explain any two of them in brief.
(b) What kind data is analyzed with Bag of word model? Explain it with 04
example.
(c) What do you mean by time series data? How can we plot it? Explain 07
it with example to plot trend over time
OR
1
Q.4 (a) Compare bar graph, box-plot and histogram with respect to their 03
applicability in data visualization.
(b) Define stemming. Explain the concept of stemming with example. 04
(c) What is the use of scatter-plot in data visualization? Can we draw 07
trendline in scatter-plot? Explain it with example.
Q.5 (a) Define the term Data wrangling. Explain the steps needed to perform 03
data wrangling.
(b) Why we need to perform Z-score standardization in EDA? Justify it 04
with example.
(c) What is the use of hash function in EDA? Express various hashing 07
trick along with example.
OR
Q.5 (a) What do you mean by Exploratory Data Analysis (EDA)? How t-test 03
is useful for EDA?
(b) What do you mean by covariance? What is the importance of 04
covariance in data analysis? Explain it with example.
(c) List different way for defining descriptive statistics for 07
Numeric Data. Explain them in brief.
*************
2
Seat No.: ________ Enrolment No.___________
MARKS
Q.1 (a) What is the role of Python in Data science? 03
(b) Differentiate List and Tuple in Python 04
(c) Explain data science pipeline in details. 07
Page 2 of 2
Seat No.: ________ Enrolment No.___________
MARKS
Q.1 (a) List Advantages of Python. 03
(b) Differentiate Numpy and Pandas. 04
(c) Explain Exploratory Data Analysis (EDA). 07
*************
2
Seat No.: ________ Enrolment No.___________
*************
1
Seat No.: ________ Enrolment No.___________
MARKS
Q.6 (a) List the type of plots that can be drawn using matplotlib. 03
(b) Write a python program to read data from CSV files using pandas. 04
(c) Explain pie chart plot with appropriate examples. 07
Q.8 (a) Define EDA. List the tasks need to be carried out in EDA? 03
(b) How hash functions can be useful to solve data science problems? 04
(c) Define the regression problem. How can it be solved using SciKit- 07
learn?
*************
2
Seat No.: ________ Enrolment No.___________
Q.2 (a) What is Extreme Programming (XP)? What are the advantages of it? 03
(b) What is black box testing? What are the different black box testing techniques? 04
(c) What is DevOps? How it works? What are the DevOps principles & best 07
practices?
OR
(c) Discuss SCRUM as agile software development process model. 07
Q.3 (a) Discuss some of the problems that occur when requirements must be elicited 03
from three or four different customers.
(b) You have been appointed a project manager for a major software products 04
company.
Your job is to manage the development of the next-generation version of its
widely used word processing software. Because competition is intense, tight
deadlines have been established and announced. What team structure would
you choose and why? What software process model(s) would you choose and
why?
(c) What is the importance of user interface? Discuss user interface design rules. 07
OR
Q.3 (a) How do we assess the quality of a software design? 03
(b) You have been appointed a software project manager for a company that 04
services the genetic engineering world. Your job is to manage the development
of a new software product that will accelerate the pace of gene typing. The
work is R&D oriented, but the goal is to produce a product within the next
year. What team structure would you choose and why? What software process
model(s) would you choose and why?
(c) What is architectural design? Discuss different style and patterns of 07
architecture.
Q.4 (a) Considering the aspects of the cost of software quality, which do you think is 03
the most expensive and why?
(b) What is FTR? Enlist FTR guidelines. 04
(c) Explain the design concepts Modularity and Functional Independence in detail. 07
OR
Q.4 (a) What elements of the WebApp can be “unit tested”? What types of tests must 03
be conducted only after the WebApp elements are integrated?
(b) Quality and reliability are related concepts but are fundamentally different in a 04
1
number of ways. Discuss the differences.
(c) What is the importance of SQA? Discuss SQA activities. 07
Q.5 (a) Using your own words, describe the difference between verification and 03
validation.
Do both make use of test-case design methods and testing strategies?
(b) What are the four elements that exist when an effective SCM system is 04
implemented? Discuss each briefly.
(c) What is the importance of class model? Prepare the class model for a web- 07
based order-processing system for a computer store.
OR
Q.5 (a) What is white box testing? What are the different coverage based testing 03
strategies.
(b) Briefly discuss the process of reverse software engineering. 04
(c) What are the elements of a behavioral model? Prepare use case diagram and 07
sequence diagrams for ATM system of a bank.
*************
2
Seat No.: ________ Enrolment No.___________
Marks
Q.1 (a) What is Software Engineering? List down different myths for it. 03
(b) What are different layers of Software Engineering? Draw and 04
explain it in short.
(c) Draw and explain the different phases of Waterfall Model. 07
Q.5 (a) What is DevOps? List down its toolchain for development process. 03
(b) How DevOps practice be adopted for software development process. 04
(c) Explain 7Cs of DevOps lifecycle. 07
1
OR
Q.5 (a) What is Component Based Software Engineering? What are its 03
advantages?
(b) How a typical software is being Reengineered? Explain why is 04
required?
(c) Explain Computer-Aided Software Engineering in detail. 07
2
Seat No.: ________ Enrolment No.___________
1
Seat No.: ________ Enrolment No.___________
1
(c) What is white box testing? Why it is required? Discuss different techniques 07
of it?
*************
2
Seat No.: ________ Enrolment No.___________
1
Q.6 (a) What are the different types of Cohesion? 03
(b) What are the various elements of data design? 04
(c) What do you mean by system testing? Explain in detail. 07
*************
2
Seat No.: ________ Enrolment No.___________
Marks
Q.1 (a) Discuss throughput in the network. 03
(b) Differentiate TCP/IP protocol stack and OSI Reference model of the 04
computer network.
(c) How does the reservation protocol work to control access of the 07
medium? Discuss the disadvantages of it.
Q.5 (a) Why the data encryption is necessary at the presentation layer of OSI 03
reference model?
(b) How does chock packet technique work for congestion control? 04
(c) What is POP3 protocol? How the limitations of POP3 protocols are 07
overcome by IMAP?
1
OR
Q.5 (a) Why data compression is necessary at the presentation layer of OSI 03
reference model?
(b) Differentiate Congestion control and flow control. 04
(c) Explain MIME structure for electronic mail. 07
***********
2
Seat No.: ________ Enrolment No.___________
Q.3 (a) Discuss parity check for error detection in data transfer. 03
(b) List and briefly describe three types of switching fabrics 04
used in Routers. Which, if any, can send multiple packets
across the fabric in parallel?
(c) Describe Go Back N and Selective Repeat protocol. 07
OR
Q.3 (a) Give difference between connection oriented and 03
connection less services.
(b) Why do HTTP, FTP, SMTP, and POP3 run on top of TCP 04
rather than on UDP? Name one application that uses UDP
and why?
(c) Explain RDT 2.0. 07
1
Q.5 (a) Explain in brief socket, multiplexing and demultiplexing. 03
(b) How DHCP protocol works? 04
(c) Explain TCP segment structure and justify the importance 07
of its field values.
OR
Q.5 (a) Describe how a botnet can be created, and how it can be 03
used for a DDoS attack.
(b) What do you mean by random access protocols? Explain 04
slotted ALOHA in brief.
(c) Explain IPv4 datagram format and importance of each 07
field
2
Seat No.: ________ Enrolment No.___________
*************
1
Seat No.: ________ Enrolment No.___________
(c) Discuss the circuit switching versus packet switching approaches for 07
moving data through a network of links and switches.
Q.3 (a) For the below mentioned internet applications protocol, mention the 03
underlying transport protocol (TCP or UDP).
i) Telnet ii) FTP iii) HTTP
(b) Discuss the count-to-infinity problem in distance vector routing algorithm 04
with example.
(c) Explain the class-full sub-netting with example. 07
OR
Q.3 (a) Define the term unicasting, multicasting, and broadcasting. 03
(b) What is the significance of the following flags in TCP segment? 04
i) URG ii) SYN iii) FIN iv) PSH
(c) Explain TCP Congestion mechanism in detail. 07
Q.4 (a) Explain the UDP checksum mechanism for error detection with example. 03
(b) What is the relevance of Type of Service (ToS) and Time to Live (TTL) 04
field in IPV4 packet?
(c) Explain Link State Routing algorithm in detail. 07
OR
Q.4 (a) What are the three most important network-layer functions in a virtual- 03
circuit network?
(b) Explain Route Summarization or Route Aggregation in network layer. 04
1
(c) Demonstrate the various error detection techniques at data link layer with 07
example.
Q.5 (a) What is the purpose of Address Resolution Protocol (ARP) and Network 03
Address Translation (NAT)?
(b) Explain the following static channel allocations mechanisms: 04
i) TDMA ii) FDMA
(c) Explain p-persistent CSMA protocol in detail. 07
OR
Q.5 (a) Data link protocols almost always put CRC in a trailer rather than in a 03
header. Why?
(b) State the difference between bit rate and baud rate. 04
(c) Discuss the working of slotted aloha along with its efficiency in terms of 07
channel utilization.
*****************
2
Seat No.: ________ Enrolment No.___________
Q.2 (a) Explain how multicasting differs from multiple unicasting in networks. 03
(b) Discriminate fully qualified domain name from partially qualified domain 04
name.
(c) Explain the working of CSMA/CD protocol in detail. 07
Q.3 (a) A Bit steam 100100 is to be transmitted using standard CRC method with 03
divisor value x3+x2+1. Generate the CRC code word.
(b) How switch device is different from the router? 04
(c) Explain the problem of Count-to-infinity with example in distance vector 07
routing algorithm.
Q.8 (a) Is data compression is necessary at the presentation layer of OSI reference 03
model? Explain it with proper reason.
(b) What do you mean by stream and datagram sockets? 04
(c) Explain the hierarchical DNS system 07
*************
1
Seat No.: ________ Enrolment No.___________
1
Seat No.: ________ Enrolment No.___________
Q.4 (a) How corporate culture will help to develop Ethical Environment in 03
company.
(b) What do you learn from Ethics of Gandhiji? How would you add that in 04
your life?
(c) Explain Honesty, Integrity and Transparency in Business. 07
OR
Q.4 (a) Define following terms: Utilitarianism, Virtue, Fairness and Justice. 03
(b) What do you learn from Ethics of Aurobindo? How would you add that 04
in your life?
(c) List and Explain sources of Ethical Behavior. 07
1
(b) What do you learn from Ethics of Tagore? How would you add that in 04
your life?
(c) Explain Ethical Decision Making. Explain Six-step decision making 07
model.
OR
Q.5 (a) Explain “White Collar Crime” in Business with example. 03
(b) Differentiate between Ethics and Philosophy. 04
(c) Explain Kohlberg’s Model of Cognitive. 07
*************
2
Seat No.: ________ Enrolment No.___________
MARKS
Q.2 (a) A personal moral standard can impact an employee’s decision making. 03
Elaborate.
(b) What kind of conflicts can be created by the confrontation of the 04
individual’s and organization’s moral philosophies in the work place?
How can they be resolved?
(c) Why should businesses act ethically? Discuss one example where 07
acting unethically harmed the business and its stake holders.
OR
(c) What values company expect from their employees? 07
Q.3 (a) What factors influence the employee’s decision making in business? 03
(b) Why do businesses have a negative image? 04
(c) Compare and contrast the Utilitarianism and Deontology ethical 07
theories.
OR
Q.3 (a) Can an effective decision be unethical? Explain. 03
(b) Explain the following terms with respect to business: 04
i) Loyalty ii) Reliability
(c) Discuss Walton’s six models of business conduct. 07
Q.4 (a) ‘Caring is the heart of ethics and ethical decision making.’ Justify with 03
an example.
(b) Compare: Normative ethics and Applied ethics. 04
(c) What are the steps in making a good ethical decision? Explain with an 07
illustration.
OR
Q.4 (a) One of the Shlokas from Rigveda says: 03
“A businessman should benefit from the business like a honey-bee
which suckles honey from the flower without affecting its charm and
beauty”.
What ethical values do you infer from this Shloka?
*************
2
Seat No.: ________ Enrolment No.___________
Marks
Q.1 (a) Enlist at least four characteristics of quality of working life. How 03
alternate work schedules helps to improvise and achieve standard
quality of working life?
(b) Define Engineering Ethics. Distinguish between ethics, laws and 04
morals.
(c) Mention the need for businesses to act ethically. 07
Q.2 (a) Justify: “Beauty lies in the eye of the beholder and thus one must 03
accept the way it is” correlates the law of humility of karma.
(b) Generalize your views over incorporation of Bhagwat Gita’s moral 04
values and ethics into one’s work life?
(c) Presume that pawan is a senior officer working for cyber security 07
agency. He comes to know that his junior officer has been a victim
of honey trapping through social media. In all of this, his phone
was hacked and confidential files were leaked. The entire
department has come together and wants pawan to take strict
actions against junior officer for his behavior. That junior officer is
highly skilled and is an asset to organization. He is also close to
pawan as he had mentored him throughout and respects him a lot.
Moreover, any action against him might attract media attention and
bring a bad repute to the entire organization at large.
i. What are the ethical issues involved and options available
to pawan in such a situation?
ii. Suggest a course of action that pawan would take to resolve
it.
OR
(c) Mention the business ethics in Islam keeping into context the 07
indian ethical traditions.
Q.3 (a) Mention principles of professional ethics. 03
(b) Provide some appropriate ways for creating an ethical working 04
environment.
(c) Discuss at least seven notable features of ancient Indian education 07
system.
OR
Q.3 (a) Mention principles of personal ethics. 03
(b) Describe how failure of personal character can be considered as 04
one of the sources of ethical problems stating one real life scenario.
(c) Briefly describe three two laws of karma by providing appropriate 07
examples.
Q.4 (a) Briefly describe the normative theory of business ethics. 03
1
(b) Briefly elaborate below statements in context to why they cannot 04
be considered business ethics:
i. Ethics is different from religion.
ii. Ethical Standards are different from cultural traits.
(c) Explain Kohlberg’s Model of Cognitive Moral Development in brief. 07
OR
Q.4 (a) Elaborate your views over the Gandhian principles of trusteeship 03
in context to business ethics.
(b) Enlist roots of unethical behavior and the factors that contribute the 04
employees to think in an unethical manner.
(c) Neelam is working as senior HR manager at Zion IT company. 07
Mention the code of personal ethics she needs to possess as an
employee of the organization.
Q.5 (a) Enlist main pillars of character for any ethical decision maker. 03
(b) Distinguish between personal and business ethics by providing 04
appropriate example.
(c) Define white-collar crime (WCC). Enlist few of the most white- 07
collar offenses observed in recent times. Mention the penalties for
WCC’s.
OR
Q.5 (a) In recent times, education system has adopted a concept of 03
tutorship wherein passed out students or seniors tutor their juniors.
Provide your views by correlating it with ancient indian education
system.
(b) Justify: “Integrity and Transparency are the touchstones of 04
Business Ethics”.
(c) Briefly describe the ethical models that guides decision making. 07
**********
2
Seat No.: ________ Enrolment No.___________
Marks
Q.5 (a) List outs Latest Technologies used for disaster management. 03
(b) How to apply moral philosophy to Ethical decision making? 04
(c) Short note on Ethics of Swami Vivekananda. 07
Q.6 (a) Explain Rules for Ethical decision making for cross over conflicts. 03
(b) Explain influences on Ethical Decision making. 04
(c) Short note on Ethics of Mahatma Gandhi. 07
**************
1
Seat No.: ________ Enrolment No.___________
MARKS
Q.1 (a) Give precise definition of Algorithm. Also discuss time and space 03
complexity of a computer algorithm.
(b) Explain the following terms in brief. 04
- directed graph
- minimum spanning tree
(c) Discuss insertion sort with its time complexity. Support your answer 07
with suitable example.
Q.4 (a) Find out time complexity for the following pseudo code using O- 03
notation.
for(i = 0; i < n; i++)
{
for(j =0 ; j < n ; j++)
{
if( i < j )
c = c + 1;
}
}
(b) Explain Huffman code in brief. 04
(c) Elaborate matrix chain multiplication using dynamic programming 07
with proper illustration.
1
OR
*******************
2
Seat No.: ________ Enrolment No.___________
MARKS
Q.3 (a) Explain the Strassen’s matrix multiplication algorithm. Obtain its time 03
complexity.
(b) Find multiplication (A x B) of A = 2341 and B = 6780 using divide and 04
conquer methodology.
(c) Explain the concept of greedy technique for Prim’s algorithm. Also obtain 07
the Minimum Spanning Tree from the following graph.
OR
Q.3 (a) Arrange following growth rates in increasing order. 03
O(n1/4), O(n1.5), O(n3 log n), O(n1.02), Ω(n6 ), Ω(n!), O(√n), O(n6/2), Ω(2n )
1
(b) Demonstrate Binary Search method to search Key = 14, form the array A= 04
{1,3,5,7,8,14,15,20}
(c) What are the Huffman trees? Construct the Huffman code for the 07
following data:
Character A B C D E F
Frequency 0.5 0.35 0.2 0.1 0.4 0.6
(c) Using Dynamic programming solve the below instance of the knapsack 07
problem with the knapsack capacity W=5
Item I1 I2 I3 I4
Weight 2 1 3 2
Value 12 10 20 15
OR
Q.4 (a) Explain string matching using finite automata with suitable example. 03
(b) Using Floyd Warshall’s algorithm find the shortest path distance between 04
every pair of vertices from the following graph.
Q.5 (a) Differentiate between depth first search and breadth first search. 03
(b) Explain use of branch and bound technique for solving assignment 04
problem.
(c) Apply backtracking to the problem of finding Hamilton circuit in the 07
graph shown below.
OR
2
Q.5 (a) Draw the state space tree Diagram to generate the solutions to 03
4-Queen problem.
(b) Explain polynomial-time reduction algorithm. 04
(c) Demonstrate Topological sort for the following graph. 07
*************
3
Seat No.: ________ Enrolment No.___________
MARKS
Q.2 (a) Write the differences between divide and conquer strategy and 03
dynamic programming.
(b) Write a brief note on time and space complexity of an algorithm. 04
(c) Arrange the following data into ascending order using heap sort. 07
Make necessary assumptions if required.
34, 12, 42, 96, 56, 11, 78
OR
(c) Solve the following knapsack problem using dynamic programming: 07
Weight W = (w1,w2,w3,w4,w5) = (1, 2, 5, 6, 7)
Profit V = (v1,v2,v3,v4,v5) = (1, 6, 18, 22, 28) and
Knapsack capacity m = 11.
Q.3 (a) Explain counting sort in brief. 03
(b) Describe master method to solve recurrences in brief. 04
(c) Find the total number of multiplications and optimal multiplication 07
sequence for the following three matrices using dynamic
programming.
A=2x5 B= 5x3 C=3x4
OR
Q.3 (a) Discuss the following terms in brief: 03
- Worst case analysis
- Best case analysis
(b) Find multiplication (A x B) of A = 2341 and B = 6780 using divide 04
and conquer methodology.
(c) Discuss Prims’ algorithm with an example. 07
Q.4 (a) Write the problem statement of making change problem. Take small 03
example to support your answer.
(b) What is Huffman code? Explain in brief. 04
(c) Write a note on the following: 07
- Topological sort
- Connected components
OR
Q.4 (a) Check the correctness of the following statement and give proper 03
justification of your answer:
“Greedy strategy does not give guarantee for optimal
1
solution.”
(b) What is principle of optimality in dynamic programming? 04
(c) Write a note on the following: 07
- BFS
- DFS
Q.5 (a) Write various applications of string matching. 03
(b) Explain the following terms with neat diagram(s): 04
- Directed graph
- Weighted graph
(c) Elaborate 8-queens problem using backtracking. 07
OR
Q.5 (a) Write a brief note on NP-complete problem. 03
(b) Explain branch and bound method in short. 04
(c) Discuss Rabin-Karp algorithm for string matching. 07
*************
2
Seat No.: ________ Enrolment No.___________
MARKS
Q.1 (a) Write the precise definition of Algorithm. Explain time and space 03
complexity of algorithm in brief.
(b) Find the maximum number from the following using divide and 04
conquer strategy.
12, 54, 22,
(c) Write algorithm for90,bubble
26, 10,sort.
78 Apply bubble sort on the 07
following data:
64, 12, 80, 34, 56, 17, 47, 73
Q.2 (a) Find out time complexity for the following pseudo code using O- 03
notation.
for(i = 0; i < n; i++)
{
for(j = 0 ; j < n ; j++)
{
if( i != j )
x = x + 1;
}
}
(b) Briefly discuss Huffman code. 04
(c) Sort the following data in ascending order using heap sort. Write 07
all the necessary steps.
43, 34, 11, 56, 23, 90
OR
(c) Write the Master theorem and explain the same in brief. Solve the 07
following recurrence using it.
T(n) = 9T(n/3) + n
Q.3 (a) Write down the characteristics of Greedy Algorithm. 03
(b) Explain counting sort in brief. 04
(c) Discuss binary search with divide-and-conquer strategy. 07
OR
Q.3 (a) Write differences between dynamic programming and greedy 03
strategy.
(b) Multiply 1456 by 1024 by divide and conquer method. 04
(c) Explain 0/1 knapsack using suitable example. 07
Q.4 (a) Briefly explain assembly line scheduling problem. 03
(b) What is making change problem? Support your answer by taking 04
small example.
(c) Determine Longest Common Subsequence of {N,E,E,L,A,M} 07
and {E,N,G,I,N,E,E,R,I,N,G}.
1
OR
Q.4 (a) Explain the following terms with brief discussion: 03
- articulation point
- directed graph
(b) Explain naïve string matching algorithm with example. 04
(c) Find an optimal parenthesization of a matrix-chain product whose 07
sequence of dimensions is {5, 2, 4, 5}
Q.5 (a) State pros and cons of breadth-first search. 03
(b) Explain 4-queens problem with backtracking. 04
(c) Discuss Kruskal’s algorithm for minimum spanning tree. 07
OR
Q.5 (a) Discuss NP-hard and NP-complete problems in brief. 03
(b) Write a brief note on topological sort. 04
(c) Explain Rabin-Karp algorithm. 07
*************
2
Seat No.: ________ Enrolment No.___________
MARKS
1
OR
Q.4 (a) Define and explain NP-complete and NP-hard problems with suitable example. 03
(b) Explain Dijkstra’s algorithm to find the shortest path. 04
(c) Find minimum spanning tree using Prim’s algorithm of the following graph. 07
*************
2
Seat No.: ________ Enrolment No.___________
MARKS
(c) For the following chain of matrices find the order of parenthesization 07
for the optimal chain multiplication (13,5,89,3,34).
Q.4 (a) Explain Tower of Hanoi Problem, Derive its recursion equation and 03
computer it’s time complexity.
(b) Explain finite automata algorithm for string matching. 04
(c) Find out LCS of A={K,A,N,D,L,A,P} and B = {A,N,D,L} 07
OR
Q.4 (a) Explain Principle of Optimality with example. 03
(b) Define BFS. How it is differ from DFS. 04
(c) Solve the following instance of knapsack problem using Backtracking 07
Technique. The Capacity of the Knapsack W = 8 and w = (2,3,4,5) and
value v = (3,5,6,10)
Q.5 (a) Draw the state space tree Diagram for 4 Queen problem. 03
(b) Define P, NP, NP-Hard and NP-Complete Problem. 04
1
(c) Find out the Minimum Spanning Tree using Kruskal Algorithm for 07
given Graph.
OR
Q.5 (a) Explain naïve string matching algorithm with example. 03
(b) Explain DFS algorithm in brief. 04
(c) Find all pair of shortest path using Floyd’s Algorithm for given graph 07
*************
2
Seat No.: ________ Enrolment No.___________
Q.3 (a) Mention the parameters for finding suitable algorithm among many candidate 03
algorithms. Justify parameter with suitable example.
(b) i. Which version of algorithm is preferred when memory resources are 04
limited, Iterative or recursive? Justify your answer.
ii. An asymptotically fast algorithm running on Slow computer is better
than asymptotically slow algorithm is running on fast computer for
larger input size. (True/False) Justify your answer with supporting
arguments.
(c) Analyze Selection sort and Insertion Sort algorithms in best case and worst 07
case scenarios.
Q.4 (a) Merge sort algorithm have similar time complexity in best, average and worst 03
case. (True/False). Justify your answer.
(b) Differentiate between greedy approach and Dynamic approach.. 04
(c) How the selection of pivot affects the performance of Quick Sort? Discuss all 07
possible scenarios.
1
(c) Compare and contrast Branch and Bound and Backtracking Methods with 07
suitable example.
(c) How to solve 0-1 knapsack problem using dynamic programming? Consider 07
Items having Value(Rs.)={60,100,120} , Weight(KG)={10,20,30}
respectively, Weight Capacity =50 KG.
*************
2
Seat No.: ________ Enrolment No.___________
GUJARAT TECHNOLOGICAL UNIVERSITY
BE - SEMESTER–V (NEW) - EXAMINATION – SUMMER 2018
Subject Code:2150703 Date:04/05/2018
Subject Name:Analysis and Design of Algorithms
Time:02:30 PM to 05:00 PM Total Marks: 70
Instructions:
1. Attempt all questions.
2. Make suitable assumptions wherever necessary.
3. Figures to the right indicate full marks.
Q.1 (a) Define Algorithm. Discuss key characteristics of algorithm. 03
(b) Prove or disprove that f(n) = 1 + 2 + 3 + .... + n ∈ Θ(n^2). 04
(c) Which are the basic steps of counting sort? Write counting sort algorithm. 07
Derive its time complexity in worst case.
Q.2 (a) What are the advantages of dynamic programming method over devide-&- 03
conquer method?
(b) Solve following recurrence using recursion tree method: T(n) = 3T(n/3) + 04
n^3.
OR
(c) Discuss best case, average case and worst case time complexity of quick sort. 07
Q.3 (a) Justify with example that shortest path problem satisfies the principle of 03
optimality.
(b) Which are the three basic steps of the development of the dynamic 04
programming algorithm? Mention any two examples of dynamic
programming that we are using in real life.
(c) Solve the following making change problem using dynamic programming 07
method: Amount = Rs. 7 and Denominations: (Rs. 1, Rs. 2 and Rs. 4)
OR
Q.3 (a) Justify with example that longest path problem does not satisfy the principle 03
of optimality.
(b) Discuss general characteristics of greedy method. Mention any two examples 04
of greedy method that we are using in real life.
(c) Solve all pair shortest path problem for the following graph using Floyd's 07
algorithm.
Q.4 (a) What are the disadvantages of greedy method over dynamic programming 03
method?
(b) What is DFS? Explain with example. Show the ordering of vertices produced 04
by Topological-sort for the following graph.
(c) Solve the following Knapsack Problem using greedy method. Number of 07
items = 5, knapsack capacity W = 100, weight vector = {50, 40, 30, 20, 10}
and profit vector = {1, 2, 3, 4, 5}.
OR
Q.4 (a) Write an algorithm for Huffman code. 03
(b) What is an approximation algorithm? Explain performance ratio for 04
approximation algorithm.
(c) Explain use of branch and bound technique for solving assignment problem. 07
Q.5 (a) Write Naive string-matching algorithm. Explain notations used in the 03
algorithm.
Q.5 (a) Which are the three major concepts used to show that a problem is an NP- 03
Complete problem?
(b) Explain breadth first search with example. 04
(c) Find minimum spanning tree for the following undirected weighted graph 07
using Kruskal’s algorithm.
*************
Seat No.: ________ Enrolment No.___________
MARKS
1
(c) What is a minimum spanning tree? Draw the minimum spanning tree 07
correspond to following graph using Prim’s algorithm.
B 8 C 7 D
4 9
2
A 11 I 4 14 E
8 7 6
10
H 1 G 2 F
*************