SlideShare a Scribd company logo
1 of 3
Anna University Question Bank
(Regulation 2013)
DESIGN AND ANALYSIS OF ALGORITHMS
UNIT I
INTRODUCTION
Notion of an Algorithm – Fundamentals of Algorithmic Problem Solving – Important Problem Types –
Fundamentals of the Analysis of Algorithmic Efficiency –Asymptotic Notations and their properties.
Analysis Framework – Empirical analysis - Mathematical analysis for Recursive and Non-recursive
algorithms - Visualization
PART A QUESTIONS
1. Write an algorithm to find the number of binary digits in the binary representation of a positive
decimal integer. (R 13 APR/MAY 2015)
2. Write down the properties of asymptotic notations. (R 13 APR/MAY 2015)
3. Design a brute force algorithm for computing the value of a polynomial p(x)=anxn
+an-1xn-1
+…+a1x…
a0 at a given x0 and determine its worst-case efficiency class. (R 13 APR/MAY 2015)
4. The (log n)th smallest number of n unsorted numbers can be determined in O(n) average-case
time. (True/False). (R 13 NOV/ DEC 2015)
5. Write the recursive Fibonacci algorithm and its recurrence relation. (R 13 NOV/ DEC 2015)
6. Give the mathematical notation to determine if a convex direction is towards left or right and
write the algorithm. (R 13 NOV/ DEC 2015)
7. Prove that any comparison sort algorithm requires Omega(nlog n) comparison in the worst case.
(R 13 NOV/ DEC 2015)
8. State how binomial coefficient is computed? (R 13 NOV/ DEC 2015)
9. Give the Euclid’s algorithm for computing gcd(m,n). (R 13 MAY/JUN 2016)
10. Compare the order of growth of n(n-1)/2 and n2. (R 13 MAY/JUN 2016)
11. Design an algorithm to compute the area and circumference of a circle. (R 13 NOV/ DEC 2016)
12. Define recurrence relation. (R 13 NOV/ DEC 2016)
13. What is an Algorithm? (R 13 APR/MAY 2017)
1
14. Write an algorithm to compute the greatest common divisor of two numbers. (R 13 APR/MAY
2017)
15. How to measure an algorithm’s running time? (R 13 NOV/ DEC 2017)
16. What do you mean by “Worst case-efficiency” of an algorithm? (R 13 NOV/ DEC 2017)
17. Define Theta Notation. (R 08 NOV/ DEC 2013)
18. Compute the average case complexity of linear search algorithm. (R 08 NOV/ DEC 2015)
PART B QUESTIONS
1. Derive a loose bound on the following equation: (R 13 APR/MAY 2015) (8)
F(x)=35X8
-22X7
+14X5
-2X4
-4X2
+X-15
2. Find the closest asymptotic tight bound by solving the recurrence equation T(n)=8T(n/2)+n2
with (T(1)=1) using Recursion Tree Method. [Assume that T(1) £ ø (1)]. (R 13 NOV/ DEC 2015) (8)
3. Suppose W satisfies the following recurrence equation and base case (where c is a constant):
W(n) = c.n+W(n/2) and W(1)=1. What is the asymptotic order of W(n). (R 13 NOV/ DEC 2015) (6)
4. Write the insertion sort algorithm and estimate its running time. (R 13 NOV/ DEC 2015) (8)
5. Give the definition and Graphical Representation of O-Notation. (R 13 MAY/JUN 2016) (8)
6. Give the algorithm to check whether all the elements in a given array of n elements are distinct.
Find worst case complexity of the same. (R 13 MAY/JUN 2016) (8)
7. Give the recursive algorithm for finding the number of binary digits in n’s binary representation,
where n isa a positive decimal integer. Find the recurrence relation and complexity. (R 13
MAY/JUN 2016) (16)
8. Use the most appropriate notation to indicate the time efficiency class of sequential search
algorithm in the worst case, best case and the average case. (R 13 NOV/ DEC 2016) (8)
9. State the general plan for analyzing the time efficiency of non-recursive algorithms and explain
with an example. (R 13 NOV/ DEC 2016) (8)
10. Solve the following recurrence relations : (R 13 NOV/ DEC 2016) (16)
2
11. Briefly explain the mathematical analysis of recursive and non-recursive algorithm. (R 13
APR/MAY 2017) (13)
12. Explain briefly Big Oh Notation, Omege Notation and Theta Notations. Give examples. (R 13
APR/MAY 2017) (13)
13. Discuss the steps in Mathematical analysis for recursive algorithms. Do the same for finding the
factorial of a number. (R 13 NOV/ DEC 2017) (13)
14. What are the Rules of Manipulate Big-Oh Expression and about the typical growth rates of
algorithms? (R 13 NOV/ DEC 2017) (13)
15. List and brief the asymptotic notations. (R 08 APR/ MAY 2011) (6)
16. Explain in detail about asymptotic notation. (R 08 MAY/JUN 2013) (6)
17. Show how to implement a stack using two queues. Analyze the running time of the stack
operations. (R 13 NOV/ DEC 2015) (10)
18. State the relationship among the complexity class algorithm with the help of neat diagrams. (R
13 NOV/ DEC 2015) (4)
19. Write a routine for random number generation algorithm. (R 08 MAY/JUN 2013) (6)
20. Explain Asymptotic complexity classes. (R 10 NOV/ DEC 2011) (8)
21. Define Big Oh notation. (R 10 NOV/ DEC 2011) (6)
22. Give the methods for Establishing Lower Bound. (R 13 NOV/ DEC 2017) (13)
3

More Related Content

What's hot

What's hot (10)

Lecture notes for s4 b tech Mathematics
Lecture notes for s4 b tech Mathematics  Lecture notes for s4 b tech Mathematics
Lecture notes for s4 b tech Mathematics
 
McGraw Hill Simulation Modeling and Analysis
McGraw Hill  Simulation Modeling and AnalysisMcGraw Hill  Simulation Modeling and Analysis
McGraw Hill Simulation Modeling and Analysis
 
What is analytic functions
What is analytic functionsWhat is analytic functions
What is analytic functions
 
Applications of analytic functions and vector calculus
Applications of analytic functions and vector calculusApplications of analytic functions and vector calculus
Applications of analytic functions and vector calculus
 
Atan2
Atan2Atan2
Atan2
 
Cs419 lec10 left recursion and left factoring
Cs419 lec10   left recursion and left factoringCs419 lec10   left recursion and left factoring
Cs419 lec10 left recursion and left factoring
 
Cs419 lec8 top-down parsing
Cs419 lec8    top-down parsingCs419 lec8    top-down parsing
Cs419 lec8 top-down parsing
 
The Aguilar-Acha prime numbers
The Aguilar-Acha prime numbersThe Aguilar-Acha prime numbers
The Aguilar-Acha prime numbers
 
Project time series ppt
Project time series pptProject time series ppt
Project time series ppt
 
Topdown parsing
Topdown parsingTopdown parsing
Topdown parsing
 

Similar to Anna University Question Bank Unit I

Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithmsAsen Bozhilov
 
Introduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic NotationIntroduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic NotationAmrinder Arora
 
Rattle Graphical Interface for R Language
Rattle Graphical Interface for R LanguageRattle Graphical Interface for R Language
Rattle Graphical Interface for R LanguageMajid Abdollahi
 
Unit5_Time Series Analysis.pdf
Unit5_Time Series  Analysis.pdfUnit5_Time Series  Analysis.pdf
Unit5_Time Series Analysis.pdfKaranvhatkar1
 
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...IJERA Editor
 
Complex function
Complex functionComplex function
Complex functionShrey Patel
 
What's new in Apache SystemML - Declarative Machine Learning
What's new in Apache SystemML  - Declarative Machine LearningWhat's new in Apache SystemML  - Declarative Machine Learning
What's new in Apache SystemML - Declarative Machine LearningLuciano Resende
 
Lecture_R.ppt
Lecture_R.pptLecture_R.ppt
Lecture_R.pptAbebe334138
 
Design and analysis of ra sort
Design and analysis of ra sortDesign and analysis of ra sort
Design and analysis of ra sortijfcstjournal
 
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...ijdpsjournal
 
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...ijdpsjournal
 
R programming slides
R  programming slidesR  programming slides
R programming slidesPankaj Saini
 

Similar to Anna University Question Bank Unit I (20)

2. cs8451 daa anna univ question bank unit 2
2. cs8451 daa anna univ question bank unit 22. cs8451 daa anna univ question bank unit 2
2. cs8451 daa anna univ question bank unit 2
 
3. cs8451 daa anna univ question bank unit 3
3. cs8451 daa anna univ question bank unit 33. cs8451 daa anna univ question bank unit 3
3. cs8451 daa anna univ question bank unit 3
 
5. cs8451 daa anna univ question bank unit 5
5. cs8451 daa anna univ question bank unit 55. cs8451 daa anna univ question bank unit 5
5. cs8451 daa anna univ question bank unit 5
 
4. cs8451 daa anna univ question bank unit 4
4. cs8451 daa anna univ question bank unit 44. cs8451 daa anna univ question bank unit 4
4. cs8451 daa anna univ question bank unit 4
 
CS8391 Data Structures 2 mark Questions - Anna University Questions
CS8391 Data Structures 2 mark Questions - Anna University QuestionsCS8391 Data Structures 2 mark Questions - Anna University Questions
CS8391 Data Structures 2 mark Questions - Anna University Questions
 
Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithms
 
Introduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic NotationIntroduction to Algorithms and Asymptotic Notation
Introduction to Algorithms and Asymptotic Notation
 
Rattle Graphical Interface for R Language
Rattle Graphical Interface for R LanguageRattle Graphical Interface for R Language
Rattle Graphical Interface for R Language
 
Unit5_Time Series Analysis.pdf
Unit5_Time Series  Analysis.pdfUnit5_Time Series  Analysis.pdf
Unit5_Time Series Analysis.pdf
 
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
Analytical and Exact solutions of a certain class of coupled nonlinear PDEs u...
 
Cs2251 daa
Cs2251 daaCs2251 daa
Cs2251 daa
 
Complex function
Complex functionComplex function
Complex function
 
What's new in Apache SystemML - Declarative Machine Learning
What's new in Apache SystemML  - Declarative Machine LearningWhat's new in Apache SystemML  - Declarative Machine Learning
What's new in Apache SystemML - Declarative Machine Learning
 
Lecture_R.ppt
Lecture_R.pptLecture_R.ppt
Lecture_R.ppt
 
Design and analysis of ra sort
Design and analysis of ra sortDesign and analysis of ra sort
Design and analysis of ra sort
 
Candidacy Exam Talk
Candidacy Exam TalkCandidacy Exam Talk
Candidacy Exam Talk
 
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
 
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
AN EFFICIENT PARALLEL ALGORITHM FOR COMPUTING DETERMINANT OF NON-SQUARE MATRI...
 
Big o
Big oBig o
Big o
 
R programming slides
R  programming slidesR  programming slides
R programming slides
 

More from P. Subathra Kishore, KAMARAJ College of Engineering and Technology, Madurai

More from P. Subathra Kishore, KAMARAJ College of Engineering and Technology, Madurai (20)

TestFile
TestFileTestFile
TestFile
 
3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)
3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)
3.1 Trees ( Introduction, Binary Trees & Binary Search Trees)
 
2.1 STACK & QUEUE ADTS
2.1 STACK & QUEUE ADTS2.1 STACK & QUEUE ADTS
2.1 STACK & QUEUE ADTS
 
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix2.2 stack applications Infix to Postfix & Evaluation of Post Fix
2.2 stack applications Infix to Postfix & Evaluation of Post Fix
 
1. 6 doubly linked list
1. 6 doubly linked list1. 6 doubly linked list
1. 6 doubly linked list
 
1. 5 Circular singly linked list
1. 5 Circular singly linked list1. 5 Circular singly linked list
1. 5 Circular singly linked list
 
1. 4 Singly linked list deletion
1. 4 Singly linked list deletion1. 4 Singly linked list deletion
1. 4 Singly linked list deletion
 
1. 3 singly linked list insertion 2
1. 3 singly linked list   insertion 21. 3 singly linked list   insertion 2
1. 3 singly linked list insertion 2
 
1. 2 Singly Linked List
1. 2 Singly Linked List1. 2 Singly Linked List
1. 2 Singly Linked List
 
1. C Basics for Data Structures Bridge Course
1. C Basics for Data Structures   Bridge Course1. C Basics for Data Structures   Bridge Course
1. C Basics for Data Structures Bridge Course
 
Approximation Algorithms TSP
Approximation Algorithms   TSPApproximation Algorithms   TSP
Approximation Algorithms TSP
 
Optimal binary search tree dynamic programming
Optimal binary search tree   dynamic programmingOptimal binary search tree   dynamic programming
Optimal binary search tree dynamic programming
 
The stable marriage problem iterative improvement method
The stable marriage problem iterative improvement methodThe stable marriage problem iterative improvement method
The stable marriage problem iterative improvement method
 
Maximum matching in bipartite graphs iterative improvement method
Maximum matching in bipartite graphs   iterative improvement methodMaximum matching in bipartite graphs   iterative improvement method
Maximum matching in bipartite graphs iterative improvement method
 
Knapsack dynamic programming formula top down (1)
Knapsack dynamic programming formula top down (1)Knapsack dynamic programming formula top down (1)
Knapsack dynamic programming formula top down (1)
 
Knapsack dynamic programming formula bottom up
Knapsack dynamic programming formula bottom upKnapsack dynamic programming formula bottom up
Knapsack dynamic programming formula bottom up
 
Huffman tree coding greedy approach
Huffman tree coding  greedy approachHuffman tree coding  greedy approach
Huffman tree coding greedy approach
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Simplex method
Simplex methodSimplex method
Simplex method
 
Multiplication of integers & strassens matrix multiplication subi notes
Multiplication of integers & strassens matrix multiplication   subi notesMultiplication of integers & strassens matrix multiplication   subi notes
Multiplication of integers & strassens matrix multiplication subi notes
 

Recently uploaded

microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacingjaychoudhary37
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLDeelipZope
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...VICTOR MAESTRE RAMIREZ
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )Tsuyoshi Horigome
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxDeepakSakkari2
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learningmisbanausheenparvam
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxvipinkmenon1
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfAsst.prof M.Gokilavani
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and usesDevarapalliHaritha
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 

Recently uploaded (20)

microprocessor 8085 and its interfacing
microprocessor 8085  and its interfacingmicroprocessor 8085  and its interfacing
microprocessor 8085 and its interfacing
 
Current Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCLCurrent Transformer Drawing and GTP for MSETCL
Current Transformer Drawing and GTP for MSETCL
 
Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...Software and Systems Engineering Standards: Verification and Validation of Sy...
Software and Systems Engineering Standards: Verification and Validation of Sy...
 
SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )SPICE PARK APR2024 ( 6,793 SPICE Models )
SPICE PARK APR2024 ( 6,793 SPICE Models )
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
VICTOR MAESTRE RAMIREZ - Planetary Defender on NASA's Double Asteroid Redirec...
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Biology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptxBiology for Computer Engineers Course Handout.pptx
Biology for Computer Engineers Course Handout.pptx
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
chaitra-1.pptx fake news detection using machine learning
chaitra-1.pptx  fake news detection using machine learningchaitra-1.pptx  fake news detection using machine learning
chaitra-1.pptx fake news detection using machine learning
 
Introduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptxIntroduction to Microprocesso programming and interfacing.pptx
Introduction to Microprocesso programming and interfacing.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdfCCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
CCS355 Neural Network & Deep Learning UNIT III notes and Question bank .pdf
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
power system scada applications and uses
power system scada applications and usespower system scada applications and uses
power system scada applications and uses
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 

Anna University Question Bank Unit I

  • 1. Anna University Question Bank (Regulation 2013) DESIGN AND ANALYSIS OF ALGORITHMS UNIT I INTRODUCTION Notion of an Algorithm – Fundamentals of Algorithmic Problem Solving – Important Problem Types – Fundamentals of the Analysis of Algorithmic Efficiency –Asymptotic Notations and their properties. Analysis Framework – Empirical analysis - Mathematical analysis for Recursive and Non-recursive algorithms - Visualization PART A QUESTIONS 1. Write an algorithm to find the number of binary digits in the binary representation of a positive decimal integer. (R 13 APR/MAY 2015) 2. Write down the properties of asymptotic notations. (R 13 APR/MAY 2015) 3. Design a brute force algorithm for computing the value of a polynomial p(x)=anxn +an-1xn-1 +…+a1x… a0 at a given x0 and determine its worst-case efficiency class. (R 13 APR/MAY 2015) 4. The (log n)th smallest number of n unsorted numbers can be determined in O(n) average-case time. (True/False). (R 13 NOV/ DEC 2015) 5. Write the recursive Fibonacci algorithm and its recurrence relation. (R 13 NOV/ DEC 2015) 6. Give the mathematical notation to determine if a convex direction is towards left or right and write the algorithm. (R 13 NOV/ DEC 2015) 7. Prove that any comparison sort algorithm requires Omega(nlog n) comparison in the worst case. (R 13 NOV/ DEC 2015) 8. State how binomial coefficient is computed? (R 13 NOV/ DEC 2015) 9. Give the Euclid’s algorithm for computing gcd(m,n). (R 13 MAY/JUN 2016) 10. Compare the order of growth of n(n-1)/2 and n2. (R 13 MAY/JUN 2016) 11. Design an algorithm to compute the area and circumference of a circle. (R 13 NOV/ DEC 2016) 12. Define recurrence relation. (R 13 NOV/ DEC 2016) 13. What is an Algorithm? (R 13 APR/MAY 2017) 1
  • 2. 14. Write an algorithm to compute the greatest common divisor of two numbers. (R 13 APR/MAY 2017) 15. How to measure an algorithm’s running time? (R 13 NOV/ DEC 2017) 16. What do you mean by “Worst case-efficiency” of an algorithm? (R 13 NOV/ DEC 2017) 17. Define Theta Notation. (R 08 NOV/ DEC 2013) 18. Compute the average case complexity of linear search algorithm. (R 08 NOV/ DEC 2015) PART B QUESTIONS 1. Derive a loose bound on the following equation: (R 13 APR/MAY 2015) (8) F(x)=35X8 -22X7 +14X5 -2X4 -4X2 +X-15 2. Find the closest asymptotic tight bound by solving the recurrence equation T(n)=8T(n/2)+n2 with (T(1)=1) using Recursion Tree Method. [Assume that T(1) ÂŁ ø (1)]. (R 13 NOV/ DEC 2015) (8) 3. Suppose W satisfies the following recurrence equation and base case (where c is a constant): W(n) = c.n+W(n/2) and W(1)=1. What is the asymptotic order of W(n). (R 13 NOV/ DEC 2015) (6) 4. Write the insertion sort algorithm and estimate its running time. (R 13 NOV/ DEC 2015) (8) 5. Give the definition and Graphical Representation of O-Notation. (R 13 MAY/JUN 2016) (8) 6. Give the algorithm to check whether all the elements in a given array of n elements are distinct. Find worst case complexity of the same. (R 13 MAY/JUN 2016) (8) 7. Give the recursive algorithm for finding the number of binary digits in n’s binary representation, where n isa a positive decimal integer. Find the recurrence relation and complexity. (R 13 MAY/JUN 2016) (16) 8. Use the most appropriate notation to indicate the time efficiency class of sequential search algorithm in the worst case, best case and the average case. (R 13 NOV/ DEC 2016) (8) 9. State the general plan for analyzing the time efficiency of non-recursive algorithms and explain with an example. (R 13 NOV/ DEC 2016) (8) 10. Solve the following recurrence relations : (R 13 NOV/ DEC 2016) (16) 2
  • 3. 11. Briefly explain the mathematical analysis of recursive and non-recursive algorithm. (R 13 APR/MAY 2017) (13) 12. Explain briefly Big Oh Notation, Omege Notation and Theta Notations. Give examples. (R 13 APR/MAY 2017) (13) 13. Discuss the steps in Mathematical analysis for recursive algorithms. Do the same for finding the factorial of a number. (R 13 NOV/ DEC 2017) (13) 14. What are the Rules of Manipulate Big-Oh Expression and about the typical growth rates of algorithms? (R 13 NOV/ DEC 2017) (13) 15. List and brief the asymptotic notations. (R 08 APR/ MAY 2011) (6) 16. Explain in detail about asymptotic notation. (R 08 MAY/JUN 2013) (6) 17. Show how to implement a stack using two queues. Analyze the running time of the stack operations. (R 13 NOV/ DEC 2015) (10) 18. State the relationship among the complexity class algorithm with the help of neat diagrams. (R 13 NOV/ DEC 2015) (4) 19. Write a routine for random number generation algorithm. (R 08 MAY/JUN 2013) (6) 20. Explain Asymptotic complexity classes. (R 10 NOV/ DEC 2011) (8) 21. Define Big Oh notation. (R 10 NOV/ DEC 2011) (6) 22. Give the methods for Establishing Lower Bound. (R 13 NOV/ DEC 2017) (13) 3