SlideShare a Scribd company logo
Uttaranchal University
Tutorial
Course: MCA-III
Subject: Design and Analysis of Algorithm (MCA 3.2)
Unit-I
1. What are algorithms? Why do we study algorithms?
2. What is the main difference between algorithms and programs?
3. Define main characteristics of an algorithm
4. Define different design approaches of an algorithm
5. How do you calculate running time of an algorithm?
6. What is time-space complexity of an algorithm?
7. Write pseudo code for an algorithm that adds the elements of an array of integers.
8. Write pseudo code for an algorithm that finds the largest element of an array of integers
9. Define order of growth of a function
10. Define Big oh notation
11. What is the use of asymptotic notation?
12. What is recurrence? Define substitution method
13. What is the running time of quick sort when all the elements of array A have the same value?
14. Define Theta notation.
15. Define Omega notation
16. Define little Oh and Little Omega notation.
Unit-II
1. Why is a binary search tree an efficient way to store and retrieve data?
2. What are the differences between an AVL tree and a Binary tree? When would you use and AVL
Tree?
3. Show how an AVL tree can be colored as a red-black tree?
4. Draw the red-black tree resulting from inserting the numbers 5,16,22,45,2,10,18,30,50,12,1 in
this order
5. A sub tree of a red-black tree is red-black. Right or wrong? If wrong , provide counter example
6. Draw a red-black that is not an AVL tree
7. After a removal in RB tree,what is the maximum number of rotations required to rebalance the
tree?
8. After an addition in a red-black tree, what is the maximum number of rotations required to
rebalance the tree?
Unit-III
1. What is dynamic programming? Give its various applications.
2. Differentiate between divide and conquer and dynamic programming.
3. Find an optimal parenthesization of a matrix chain product whose sequence of dimensions is
< 5,10,3,12,5,50,6>
4. Write the control abstraction for greedy method.
5. What are the constraints of knapsack problem?
6. Define feasible and optimal solution.
7. 0/1 knapsack issue cannot be solved by Greedy technique. Why?
8. Explain briefly about traveling sales person issue.
Unit-IV
1. What is a minimum cost spanning tree?
2. What do you mean by multistage graph?
3. Specify the algorithms used for constructing Minimum cost spanning tree.
4. State single source shortest path algorithm (Dijkstra’s algorithm).
5. Solve the knapsack issue using greedy technique.
6. Explain Prim’s algorithm to construct Minimum cost spanning tree.
7. Explain Kruskal’s algorithm to construct Minimum cost spanning tree.
8. Define Breadth First search.
9. Define Depth first search.
Unit-V
1. What are P and NP?
2. What is deterministic algorithm?
3. What is Non-Deterministic Algorithm?
4. Draw the relationship ranging from P, NP,NP complete and NP-hard.
5. What is the property of NP-Complete problem?
6. What is the property of NP-Hard problem?
7. What are the two most famous unsolved issues in Computer science?
8. Explain the basic concepts of P,NP,NP-Complete and NP-Hard.
Daa tutorial

More Related Content

What's hot

Application of linear algebra in cse
Application of linear algebra in cseApplication of linear algebra in cse
Application of linear algebra in cseArnob Khan
 
HW2-1_05.doc
HW2-1_05.docHW2-1_05.doc
HW2-1_05.docbutest
 
Application of matrices in real life and matrix
Application of matrices in real life and matrixApplication of matrices in real life and matrix
Application of matrices in real life and matrixDarshDobariya
 
Matematika terapan week 6
Matematika terapan week 6 Matematika terapan week 6
Matematika terapan week 6 nellylawar
 
Matrices And Application Of Matrices
Matrices And Application Of MatricesMatrices And Application Of Matrices
Matrices And Application Of Matricesmailrenuka
 
Summer Report on Mathematics for Machine learning: Imperial College of London
Summer Report on Mathematics for Machine learning: Imperial College of LondonSummer Report on Mathematics for Machine learning: Imperial College of London
Summer Report on Mathematics for Machine learning: Imperial College of LondonYash Khanna
 
Applications of Matrices
Applications of MatricesApplications of Matrices
Applications of Matricessanthosh kumar
 
Applications of Linear Algebra in Computer Sciences
Applications of Linear Algebra in Computer SciencesApplications of Linear Algebra in Computer Sciences
Applications of Linear Algebra in Computer SciencesAmir Sharif Chishti
 
Multiplication of matrices and its application in biology
Multiplication of matrices and its application in biologyMultiplication of matrices and its application in biology
Multiplication of matrices and its application in biologynayanika bhalla
 
Polymath For Chemical Engineers
Polymath For Chemical EngineersPolymath For Chemical Engineers
Polymath For Chemical EngineersHashim Khan
 
Data structure lecture 2 (pdf)
Data structure lecture 2 (pdf)Data structure lecture 2 (pdf)
Data structure lecture 2 (pdf)Abbott
 
Application of matrices in Daily life
Application of matrices in Daily lifeApplication of matrices in Daily life
Application of matrices in Daily lifeshubham mishra
 

What's hot (20)

Application of linear algebra in cse
Application of linear algebra in cseApplication of linear algebra in cse
Application of linear algebra in cse
 
HW2-1_05.doc
HW2-1_05.docHW2-1_05.doc
HW2-1_05.doc
 
Application of matrices in real life and matrix
Application of matrices in real life and matrixApplication of matrices in real life and matrix
Application of matrices in real life and matrix
 
Matematika terapan week 6
Matematika terapan week 6 Matematika terapan week 6
Matematika terapan week 6
 
Satan
SatanSatan
Satan
 
Model and Design
Model and Design Model and Design
Model and Design
 
Matrices And Application Of Matrices
Matrices And Application Of MatricesMatrices And Application Of Matrices
Matrices And Application Of Matrices
 
Summer Report on Mathematics for Machine learning: Imperial College of London
Summer Report on Mathematics for Machine learning: Imperial College of LondonSummer Report on Mathematics for Machine learning: Imperial College of London
Summer Report on Mathematics for Machine learning: Imperial College of London
 
Applications of linear algebra in field of it
Applications of linear algebra in field of itApplications of linear algebra in field of it
Applications of linear algebra in field of it
 
Matrix in software engineering
Matrix in software engineeringMatrix in software engineering
Matrix in software engineering
 
Applications of Matrices
Applications of MatricesApplications of Matrices
Applications of Matrices
 
Application of matrices in real life
Application of matrices in real lifeApplication of matrices in real life
Application of matrices in real life
 
Applications of Linear Algebra in Computer Sciences
Applications of Linear Algebra in Computer SciencesApplications of Linear Algebra in Computer Sciences
Applications of Linear Algebra in Computer Sciences
 
Algorithms
AlgorithmsAlgorithms
Algorithms
 
Multiplication of matrices and its application in biology
Multiplication of matrices and its application in biologyMultiplication of matrices and its application in biology
Multiplication of matrices and its application in biology
 
Polymath For Chemical Engineers
Polymath For Chemical EngineersPolymath For Chemical Engineers
Polymath For Chemical Engineers
 
Chap08
Chap08Chap08
Chap08
 
Data structure lecture 2 (pdf)
Data structure lecture 2 (pdf)Data structure lecture 2 (pdf)
Data structure lecture 2 (pdf)
 
Data structue q & a
Data structue q & aData structue q & a
Data structue q & a
 
Application of matrices in Daily life
Application of matrices in Daily lifeApplication of matrices in Daily life
Application of matrices in Daily life
 

Viewers also liked

Инвестируйте в себя! Avtomeenkoff
Инвестируйте в себя!  AvtomeenkoffИнвестируйте в себя!  Avtomeenkoff
Инвестируйте в себя! AvtomeenkoffAvtomeenkoff & Co
 
Vl plantocut 22-sr
Vl plantocut 22-srVl plantocut 22-sr
Vl plantocut 22-srtkxkd19
 
RIGEA GeoLiteracy
RIGEA GeoLiteracyRIGEA GeoLiteracy
RIGEA GeoLiteracySeth Dixon
 
Cloud computing pros and cons for computer forensic investigations
Cloud computing pros and cons for computer forensic investigationsCloud computing pros and cons for computer forensic investigations
Cloud computing pros and cons for computer forensic investigationspoojagupta010
 
RIGEA Latin America
RIGEA Latin AmericaRIGEA Latin America
RIGEA Latin AmericaSeth Dixon
 
แบบบันทึกเคส ยะลา
แบบบันทึกเคส ยะลาแบบบันทึกเคส ยะลา
แบบบันทึกเคส ยะลาCotton On
 
ตรวจร่างกายระบบประสาท
ตรวจร่างกายระบบประสาทตรวจร่างกายระบบประสาท
ตรวจร่างกายระบบประสาทCotton On
 
Hand out of_pe_spine_edit2012 ระบบประสาท
Hand out of_pe_spine_edit2012 ระบบประสาทHand out of_pe_spine_edit2012 ระบบประสาท
Hand out of_pe_spine_edit2012 ระบบประสาทCotton On
 
Choices Program: What does good Geography Teaching Look Like?
Choices Program: What does good Geography Teaching Look Like?Choices Program: What does good Geography Teaching Look Like?
Choices Program: What does good Geography Teaching Look Like?Seth Dixon
 
APHG with Sports #NCGE2013--Paul Gray
APHG with Sports #NCGE2013--Paul GrayAPHG with Sports #NCGE2013--Paul Gray
APHG with Sports #NCGE2013--Paul GraySeth Dixon
 
Geography and the Common Core
Geography and the Common CoreGeography and the Common Core
Geography and the Common CoreSeth Dixon
 
NEARC GIS Educator's Day
NEARC GIS Educator's DayNEARC GIS Educator's Day
NEARC GIS Educator's DaySeth Dixon
 

Viewers also liked (20)

Peru ley27314
Peru ley27314Peru ley27314
Peru ley27314
 
Инвестируйте в себя! Avtomeenkoff
Инвестируйте в себя!  AvtomeenkoffИнвестируйте в себя!  Avtomeenkoff
Инвестируйте в себя! Avtomeenkoff
 
Gump
GumpGump
Gump
 
Juegos paraolimpicos2016
Juegos paraolimpicos2016Juegos paraolimpicos2016
Juegos paraolimpicos2016
 
Neuro ex
Neuro exNeuro ex
Neuro ex
 
Vl plantocut 22-sr
Vl plantocut 22-srVl plantocut 22-sr
Vl plantocut 22-sr
 
RIGEA GeoLiteracy
RIGEA GeoLiteracyRIGEA GeoLiteracy
RIGEA GeoLiteracy
 
Cloud computing pros and cons for computer forensic investigations
Cloud computing pros and cons for computer forensic investigationsCloud computing pros and cons for computer forensic investigations
Cloud computing pros and cons for computer forensic investigations
 
Jscd cpresiwhite
Jscd cpresiwhiteJscd cpresiwhite
Jscd cpresiwhite
 
Yop
YopYop
Yop
 
RIGEA Latin America
RIGEA Latin AmericaRIGEA Latin America
RIGEA Latin America
 
แบบบันทึกเคส ยะลา
แบบบันทึกเคส ยะลาแบบบันทึกเคส ยะลา
แบบบันทึกเคส ยะลา
 
Jscd cpresi
Jscd cpresiJscd cpresi
Jscd cpresi
 
ตรวจร่างกายระบบประสาท
ตรวจร่างกายระบบประสาทตรวจร่างกายระบบประสาท
ตรวจร่างกายระบบประสาท
 
sun tracking solar panel
sun tracking solar panelsun tracking solar panel
sun tracking solar panel
 
Hand out of_pe_spine_edit2012 ระบบประสาท
Hand out of_pe_spine_edit2012 ระบบประสาทHand out of_pe_spine_edit2012 ระบบประสาท
Hand out of_pe_spine_edit2012 ระบบประสาท
 
Choices Program: What does good Geography Teaching Look Like?
Choices Program: What does good Geography Teaching Look Like?Choices Program: What does good Geography Teaching Look Like?
Choices Program: What does good Geography Teaching Look Like?
 
APHG with Sports #NCGE2013--Paul Gray
APHG with Sports #NCGE2013--Paul GrayAPHG with Sports #NCGE2013--Paul Gray
APHG with Sports #NCGE2013--Paul Gray
 
Geography and the Common Core
Geography and the Common CoreGeography and the Common Core
Geography and the Common Core
 
NEARC GIS Educator's Day
NEARC GIS Educator's DayNEARC GIS Educator's Day
NEARC GIS Educator's Day
 

Similar to Daa tutorial

Pune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample QuestionsPune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample Questionsshailendrashinde9
 
C language 100 questions answers
C language 100 questions answersC language 100 questions answers
C language 100 questions answerssakshitiwari631430
 
Analysis of Algorithms
Analysis of AlgorithmsAnalysis of Algorithms
Analysis of AlgorithmsAmna Saeed
 
Design & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture NotesDesign & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture NotesFellowBuddy.com
 
Data mining and warehousing qb
Data mining and warehousing   qbData mining and warehousing   qb
Data mining and warehousing qbaniprahal
 
Data Analysis – Technical learnings
Data Analysis – Technical learningsData Analysis – Technical learnings
Data Analysis – Technical learningsInvenkLearn
 
UNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.pptUNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.pptracha49
 
Introduction to Design Algorithm And Analysis.ppt
Introduction to Design Algorithm And Analysis.pptIntroduction to Design Algorithm And Analysis.ppt
Introduction to Design Algorithm And Analysis.pptBhargaviDalal4
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)theijes
 
Lecture#1(Algorithmic Notations).ppt
Lecture#1(Algorithmic Notations).pptLecture#1(Algorithmic Notations).ppt
Lecture#1(Algorithmic Notations).pptMuhammadTalhaAwan1
 
Job Scheduling on the Grid Environment using Max-Min Firefly Algorithm
Job Scheduling on the Grid Environment using Max-Min  Firefly AlgorithmJob Scheduling on the Grid Environment using Max-Min  Firefly Algorithm
Job Scheduling on the Grid Environment using Max-Min Firefly AlgorithmEditor IJCATR
 
Smu msc it spring 2014 solved assignments
Smu msc it spring 2014 solved assignmentsSmu msc it spring 2014 solved assignments
Smu msc it spring 2014 solved assignmentssmumbahelp
 
Data Structures & Algorithms Coursework Assignment for Sem.docx
Data Structures & Algorithms Coursework Assignment for Sem.docxData Structures & Algorithms Coursework Assignment for Sem.docx
Data Structures & Algorithms Coursework Assignment for Sem.docxsimonithomas47935
 
Design and Analysis Algorithms.pdf
Design and Analysis Algorithms.pdfDesign and Analysis Algorithms.pdf
Design and Analysis Algorithms.pdfHarshNagda5
 

Similar to Daa tutorial (20)

Algorithm
AlgorithmAlgorithm
Algorithm
 
Pune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample QuestionsPune University MCA [Management] 2020-Sample Questions
Pune University MCA [Management] 2020-Sample Questions
 
C language 100 questions answers
C language 100 questions answersC language 100 questions answers
C language 100 questions answers
 
Analysis of Algorithms
Analysis of AlgorithmsAnalysis of Algorithms
Analysis of Algorithms
 
Daa
DaaDaa
Daa
 
Design & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture NotesDesign & Analysis of Algorithms Lecture Notes
Design & Analysis of Algorithms Lecture Notes
 
Data mining and warehousing qb
Data mining and warehousing   qbData mining and warehousing   qb
Data mining and warehousing qb
 
Data Analysis – Technical learnings
Data Analysis – Technical learningsData Analysis – Technical learnings
Data Analysis – Technical learnings
 
UNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.pptUNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.ppt
 
UNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.pptUNIT-1-PPTS-DAA.ppt
UNIT-1-PPTS-DAA.ppt
 
Introduction to Design Algorithm And Analysis.ppt
Introduction to Design Algorithm And Analysis.pptIntroduction to Design Algorithm And Analysis.ppt
Introduction to Design Algorithm And Analysis.ppt
 
unit 2 hpc.pptx
unit 2 hpc.pptxunit 2 hpc.pptx
unit 2 hpc.pptx
 
Design & Analysis Of Algorithm
Design & Analysis Of AlgorithmDesign & Analysis Of Algorithm
Design & Analysis Of Algorithm
 
The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)The International Journal of Engineering and Science (The IJES)
The International Journal of Engineering and Science (The IJES)
 
Lecture#1(Algorithmic Notations).ppt
Lecture#1(Algorithmic Notations).pptLecture#1(Algorithmic Notations).ppt
Lecture#1(Algorithmic Notations).ppt
 
Job Scheduling on the Grid Environment using Max-Min Firefly Algorithm
Job Scheduling on the Grid Environment using Max-Min  Firefly AlgorithmJob Scheduling on the Grid Environment using Max-Min  Firefly Algorithm
Job Scheduling on the Grid Environment using Max-Min Firefly Algorithm
 
Unit 1 dsa
Unit 1 dsaUnit 1 dsa
Unit 1 dsa
 
Smu msc it spring 2014 solved assignments
Smu msc it spring 2014 solved assignmentsSmu msc it spring 2014 solved assignments
Smu msc it spring 2014 solved assignments
 
Data Structures & Algorithms Coursework Assignment for Sem.docx
Data Structures & Algorithms Coursework Assignment for Sem.docxData Structures & Algorithms Coursework Assignment for Sem.docx
Data Structures & Algorithms Coursework Assignment for Sem.docx
 
Design and Analysis Algorithms.pdf
Design and Analysis Algorithms.pdfDesign and Analysis Algorithms.pdf
Design and Analysis Algorithms.pdf
 

Recently uploaded

The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonSteve Thomason
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfQucHHunhnh
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxCapitolTechU
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfPo-Chuan Chen
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...Sayali Powar
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaasiemaillard
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resourcesaileywriter
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptSourabh Kumar
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxShibin Azad
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfTamralipta Mahavidyalaya
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesRased Khan
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...Nguyen Thanh Tu Collection
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportAvinash Rai
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxDenish Jangid
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxbennyroshan06
 

Recently uploaded (20)

B.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdfB.ed spl. HI pdusu exam paper-2023-24.pdf
B.ed spl. HI pdusu exam paper-2023-24.pdf
 
The Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve ThomasonThe Art Pastor's Guide to Sabbath | Steve Thomason
The Art Pastor's Guide to Sabbath | Steve Thomason
 
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdfDanh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
Danh sách HSG Bộ môn cấp trường - Cấp THPT.pdf
 
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptxslides CapTechTalks Webinar May 2024 Alexander Perry.pptx
slides CapTechTalks Webinar May 2024 Alexander Perry.pptx
 
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
Mattingly "AI & Prompt Design: Limitations and Solutions with LLMs"
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdfAdversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
Adversarial Attention Modeling for Multi-dimensional Emotion Regression.pdf
 
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
Operations Management - Book1.p  - Dr. Abdulfatah A. SalemOperations Management - Book1.p  - Dr. Abdulfatah A. Salem
Operations Management - Book1.p - Dr. Abdulfatah A. Salem
 
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
UNIT – IV_PCI Complaints: Complaints and evaluation of complaints, Handling o...
 
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
 
The Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational ResourcesThe Benefits and Challenges of Open Educational Resources
The Benefits and Challenges of Open Educational Resources
 
Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......Ethnobotany and Ethnopharmacology ......
Ethnobotany and Ethnopharmacology ......
 
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.pptBasic_QTL_Marker-assisted_Selection_Sourabh.ppt
Basic_QTL_Marker-assisted_Selection_Sourabh.ppt
 
Gyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptxGyanartha SciBizTech Quiz slideshare.pptx
Gyanartha SciBizTech Quiz slideshare.pptx
 
Home assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdfHome assignment II on Spectroscopy 2024 Answers.pdf
Home assignment II on Spectroscopy 2024 Answers.pdf
 
Application of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matricesApplication of Matrices in real life. Presentation on application of matrices
Application of Matrices in real life. Presentation on application of matrices
 
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
GIÁO ÁN DẠY THÊM (KẾ HOẠCH BÀI BUỔI 2) - TIẾNG ANH 8 GLOBAL SUCCESS (2 CỘT) N...
 
Industrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training ReportIndustrial Training Report- AKTU Industrial Training Report
Industrial Training Report- AKTU Industrial Training Report
 
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptxSolid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
Solid waste management & Types of Basic civil Engineering notes by DJ Sir.pptx
 
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptxMARUTI SUZUKI- A Successful Joint Venture in India.pptx
MARUTI SUZUKI- A Successful Joint Venture in India.pptx
 

Daa tutorial

  • 1. Uttaranchal University Tutorial Course: MCA-III Subject: Design and Analysis of Algorithm (MCA 3.2) Unit-I 1. What are algorithms? Why do we study algorithms? 2. What is the main difference between algorithms and programs? 3. Define main characteristics of an algorithm 4. Define different design approaches of an algorithm 5. How do you calculate running time of an algorithm? 6. What is time-space complexity of an algorithm? 7. Write pseudo code for an algorithm that adds the elements of an array of integers. 8. Write pseudo code for an algorithm that finds the largest element of an array of integers 9. Define order of growth of a function 10. Define Big oh notation 11. What is the use of asymptotic notation? 12. What is recurrence? Define substitution method 13. What is the running time of quick sort when all the elements of array A have the same value? 14. Define Theta notation. 15. Define Omega notation 16. Define little Oh and Little Omega notation. Unit-II 1. Why is a binary search tree an efficient way to store and retrieve data? 2. What are the differences between an AVL tree and a Binary tree? When would you use and AVL Tree? 3. Show how an AVL tree can be colored as a red-black tree? 4. Draw the red-black tree resulting from inserting the numbers 5,16,22,45,2,10,18,30,50,12,1 in this order 5. A sub tree of a red-black tree is red-black. Right or wrong? If wrong , provide counter example 6. Draw a red-black that is not an AVL tree 7. After a removal in RB tree,what is the maximum number of rotations required to rebalance the tree?
  • 2. 8. After an addition in a red-black tree, what is the maximum number of rotations required to rebalance the tree? Unit-III 1. What is dynamic programming? Give its various applications. 2. Differentiate between divide and conquer and dynamic programming. 3. Find an optimal parenthesization of a matrix chain product whose sequence of dimensions is < 5,10,3,12,5,50,6> 4. Write the control abstraction for greedy method. 5. What are the constraints of knapsack problem? 6. Define feasible and optimal solution. 7. 0/1 knapsack issue cannot be solved by Greedy technique. Why? 8. Explain briefly about traveling sales person issue. Unit-IV 1. What is a minimum cost spanning tree? 2. What do you mean by multistage graph? 3. Specify the algorithms used for constructing Minimum cost spanning tree. 4. State single source shortest path algorithm (Dijkstra’s algorithm). 5. Solve the knapsack issue using greedy technique. 6. Explain Prim’s algorithm to construct Minimum cost spanning tree. 7. Explain Kruskal’s algorithm to construct Minimum cost spanning tree. 8. Define Breadth First search. 9. Define Depth first search. Unit-V 1. What are P and NP? 2. What is deterministic algorithm? 3. What is Non-Deterministic Algorithm? 4. Draw the relationship ranging from P, NP,NP complete and NP-hard. 5. What is the property of NP-Complete problem? 6. What is the property of NP-Hard problem? 7. What are the two most famous unsolved issues in Computer science? 8. Explain the basic concepts of P,NP,NP-Complete and NP-Hard.