SlideShare una empresa de Scribd logo
1 de 1
a) In reference to algorithm analysis, explain performance based on the number of basic
operations executed
b) In the same reference also explain problem cost vs. program cost
Solution
Answer :
( a )The run-time complexity for the worst-case scenario of a given algorithm can sometimes be
evaluated by examining the structure of the algorithm and making some simplifying
assumptions.A given computer will take a discrete amount of time to execute each of the
instructions involved with carrying out an algorithm. The specific amount of time to carry out a
given instruction will vary depending on which instruction is being executed and which
computer is executing it.
( b ) Problem cost comprises of cost of understanding ,programming and cost of running a
program where as program cost comprises cost of running a program .

Más contenido relacionado

Similar a a) In reference to algorithm analysis- explain performance based on th.docx

algocomplexity cost effective tradeoff in
algocomplexity cost effective tradeoff inalgocomplexity cost effective tradeoff in
algocomplexity cost effective tradeoff in
javed75
 
Final Exam Solutions Fall02
Final Exam Solutions Fall02Final Exam Solutions Fall02
Final Exam Solutions Fall02
Radu_Negulescu
 
Final Exam Questions Fall03
Final Exam Questions Fall03Final Exam Questions Fall03
Final Exam Questions Fall03
Radu_Negulescu
 
11.dynamic instruction scheduling for microprocessors having out of order exe...
11.dynamic instruction scheduling for microprocessors having out of order exe...11.dynamic instruction scheduling for microprocessors having out of order exe...
11.dynamic instruction scheduling for microprocessors having out of order exe...
Alexander Decker
 

Similar a a) In reference to algorithm analysis- explain performance based on th.docx (20)

algocomplexity cost effective tradeoff in
algocomplexity cost effective tradeoff inalgocomplexity cost effective tradeoff in
algocomplexity cost effective tradeoff in
 
Phases of the Compiler - Systems Programming
Phases of the Compiler - Systems ProgrammingPhases of the Compiler - Systems Programming
Phases of the Compiler - Systems Programming
 
Parallel Algorithms Advantages and Disadvantages
Parallel Algorithms Advantages and DisadvantagesParallel Algorithms Advantages and Disadvantages
Parallel Algorithms Advantages and Disadvantages
 
Analysis of algorithms
Analysis of algorithmsAnalysis of algorithms
Analysis of algorithms
 
Parallel Computing - Lec 6
Parallel Computing - Lec 6Parallel Computing - Lec 6
Parallel Computing - Lec 6
 
GCC Compiler as a Performance Testing tool for C programs
GCC Compiler as a Performance Testing tool for C programsGCC Compiler as a Performance Testing tool for C programs
GCC Compiler as a Performance Testing tool for C programs
 
Final Exam Solutions Fall02
Final Exam Solutions Fall02Final Exam Solutions Fall02
Final Exam Solutions Fall02
 
Final Exam Questions Fall03
Final Exam Questions Fall03Final Exam Questions Fall03
Final Exam Questions Fall03
 
In computer sciencei
In computer scienceiIn computer sciencei
In computer sciencei
 
11.[10 14]dynamic instruction scheduling for microprocessors having out of or...
11.[10 14]dynamic instruction scheduling for microprocessors having out of or...11.[10 14]dynamic instruction scheduling for microprocessors having out of or...
11.[10 14]dynamic instruction scheduling for microprocessors having out of or...
 
Pretzel: optimized Machine Learning framework for low-latency and high throug...
Pretzel: optimized Machine Learning framework for low-latency and high throug...Pretzel: optimized Machine Learning framework for low-latency and high throug...
Pretzel: optimized Machine Learning framework for low-latency and high throug...
 
11.dynamic instruction scheduling for microprocessors having out of order exe...
11.dynamic instruction scheduling for microprocessors having out of order exe...11.dynamic instruction scheduling for microprocessors having out of order exe...
11.dynamic instruction scheduling for microprocessors having out of order exe...
 
Chapter 09 design and analysis of algorithms
Chapter 09  design and analysis of algorithmsChapter 09  design and analysis of algorithms
Chapter 09 design and analysis of algorithms
 
Green scheduling
Green schedulingGreen scheduling
Green scheduling
 
DYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTING
DYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTINGDYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTING
DYNAMIC TASK PARTITIONING MODEL IN PARALLEL COMPUTING
 
Unit 1, ADA.pptx
Unit 1, ADA.pptxUnit 1, ADA.pptx
Unit 1, ADA.pptx
 
The Impact of Compiler Auto-Optimisation on Arm-based HPC Microarchitectures
The Impact of Compiler Auto-Optimisation on Arm-based HPC MicroarchitecturesThe Impact of Compiler Auto-Optimisation on Arm-based HPC Microarchitectures
The Impact of Compiler Auto-Optimisation on Arm-based HPC Microarchitectures
 
Design & Analysis of Algorithm course .pptx
Design & Analysis of Algorithm course .pptxDesign & Analysis of Algorithm course .pptx
Design & Analysis of Algorithm course .pptx
 
Ijciet 10 01_162
Ijciet 10 01_162Ijciet 10 01_162
Ijciet 10 01_162
 
BDS_QA.pdf
BDS_QA.pdfBDS_QA.pdf
BDS_QA.pdf
 

Más de andyb37

A-Sodium sulfate is dissociating in water- B-Ethylene glycol contains.docx
A-Sodium sulfate is dissociating in water- B-Ethylene glycol contains.docxA-Sodium sulfate is dissociating in water- B-Ethylene glycol contains.docx
A-Sodium sulfate is dissociating in water- B-Ethylene glycol contains.docx
andyb37
 
A- Organizations typically adopt a consistent decentralization or cent.docx
A- Organizations typically adopt a consistent decentralization or cent.docxA- Organizations typically adopt a consistent decentralization or cent.docx
A- Organizations typically adopt a consistent decentralization or cent.docx
andyb37
 
A- Discuss some types of personal information that companies collect f.docx
A- Discuss some types of personal information that companies collect f.docxA- Discuss some types of personal information that companies collect f.docx
A- Discuss some types of personal information that companies collect f.docx
andyb37
 
Describe- in detail- what would happen if you fell into a black hole-.docx
Describe- in detail- what would happen if you fell into a black hole-.docxDescribe- in detail- what would happen if you fell into a black hole-.docx
Describe- in detail- what would happen if you fell into a black hole-.docx
andyb37
 
Describe the tree data structure- What is a root node- What is a child.docx
Describe the tree data structure- What is a root node- What is a child.docxDescribe the tree data structure- What is a root node- What is a child.docx
Describe the tree data structure- What is a root node- What is a child.docx
andyb37
 

Más de andyb37 (20)

A) member functions B) member variables C) constructor and destructor.docx
A) member functions B) member variables C) constructor and destructor.docxA) member functions B) member variables C) constructor and destructor.docx
A) member functions B) member variables C) constructor and destructor.docx
 
a) Compare interstitial and vacancy atomic mechanisms for diffusion- (.docx
a) Compare interstitial and vacancy atomic mechanisms for diffusion- (.docxa) Compare interstitial and vacancy atomic mechanisms for diffusion- (.docx
a) Compare interstitial and vacancy atomic mechanisms for diffusion- (.docx
 
A-Sodium sulfate is dissociating in water- B-Ethylene glycol contains.docx
A-Sodium sulfate is dissociating in water- B-Ethylene glycol contains.docxA-Sodium sulfate is dissociating in water- B-Ethylene glycol contains.docx
A-Sodium sulfate is dissociating in water- B-Ethylene glycol contains.docx
 
A-11 Present Value of Cash Flows Star City is considering an investmen.docx
A-11 Present Value of Cash Flows Star City is considering an investmen.docxA-11 Present Value of Cash Flows Star City is considering an investmen.docx
A-11 Present Value of Cash Flows Star City is considering an investmen.docx
 
A- Organizations typically adopt a consistent decentralization or cent.docx
A- Organizations typically adopt a consistent decentralization or cent.docxA- Organizations typically adopt a consistent decentralization or cent.docx
A- Organizations typically adopt a consistent decentralization or cent.docx
 
A- Discuss some types of personal information that companies collect f.docx
A- Discuss some types of personal information that companies collect f.docxA- Discuss some types of personal information that companies collect f.docx
A- Discuss some types of personal information that companies collect f.docx
 
a)What is a function group- How does the type of functional group affe.docx
a)What is a function group- How does the type of functional group affe.docxa)What is a function group- How does the type of functional group affe.docx
a)What is a function group- How does the type of functional group affe.docx
 
detail the significant ways that an awareness of emotional intelligenc.docx
detail the significant ways that an awareness of emotional intelligenc.docxdetail the significant ways that an awareness of emotional intelligenc.docx
detail the significant ways that an awareness of emotional intelligenc.docx
 
Despite theoretical assertions by M-M and others- many investors do ca.docx
Despite theoretical assertions by M-M and others- many investors do ca.docxDespite theoretical assertions by M-M and others- many investors do ca.docx
Despite theoretical assertions by M-M and others- many investors do ca.docx
 
Develop a research paper providing an overview of what construction de.docx
Develop a research paper providing an overview of what construction de.docxDevelop a research paper providing an overview of what construction de.docx
Develop a research paper providing an overview of what construction de.docx
 
Determining Intermolecular Forces-Solubility for Functional Groups Fun.docx
Determining Intermolecular Forces-Solubility for Functional Groups Fun.docxDetermining Intermolecular Forces-Solubility for Functional Groups Fun.docx
Determining Intermolecular Forces-Solubility for Functional Groups Fun.docx
 
Determined the common stock for Bertinelli Corp- based on the followin.docx
Determined the common stock for Bertinelli Corp- based on the followin.docxDetermined the common stock for Bertinelli Corp- based on the followin.docx
Determined the common stock for Bertinelli Corp- based on the followin.docx
 
Determine which major balance sheet information requires supplemental.docx
Determine which major balance sheet information requires supplemental.docxDetermine which major balance sheet information requires supplemental.docx
Determine which major balance sheet information requires supplemental.docx
 
Determine whether the bond between each of the following pairs of atom.docx
Determine whether the bond between each of the following pairs of atom.docxDetermine whether the bond between each of the following pairs of atom.docx
Determine whether the bond between each of the following pairs of atom.docx
 
Determine the polymer structure whether (Linear- Branched- Cross-linke.docx
Determine the polymer structure whether (Linear- Branched- Cross-linke.docxDetermine the polymer structure whether (Linear- Branched- Cross-linke.docx
Determine the polymer structure whether (Linear- Branched- Cross-linke.docx
 
Design a special tree data structure such that the branching factor of.docx
Design a special tree data structure such that the branching factor of.docxDesign a special tree data structure such that the branching factor of.docx
Design a special tree data structure such that the branching factor of.docx
 
Describe- in detail- what would happen if you fell into a black hole-.docx
Describe- in detail- what would happen if you fell into a black hole-.docxDescribe- in detail- what would happen if you fell into a black hole-.docx
Describe- in detail- what would happen if you fell into a black hole-.docx
 
Describe what is meant by the dipole nature of a water molecule- How i.docx
Describe what is meant by the dipole nature of a water molecule- How i.docxDescribe what is meant by the dipole nature of a water molecule- How i.docx
Describe what is meant by the dipole nature of a water molecule- How i.docx
 
Describe what RFID is as well as Identify at least two examples of the.docx
Describe what RFID is as well as Identify at least two examples of the.docxDescribe what RFID is as well as Identify at least two examples of the.docx
Describe what RFID is as well as Identify at least two examples of the.docx
 
Describe the tree data structure- What is a root node- What is a child.docx
Describe the tree data structure- What is a root node- What is a child.docxDescribe the tree data structure- What is a root node- What is a child.docx
Describe the tree data structure- What is a root node- What is a child.docx
 

Último

Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
ssuserdda66b
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
QucHHunhnh
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
ciinovamais
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 

Último (20)

2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
2024-NATIONAL-LEARNING-CAMP-AND-OTHER.pptx
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Single or Multiple melodic lines structure
Single or Multiple melodic lines structureSingle or Multiple melodic lines structure
Single or Multiple melodic lines structure
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdfVishram Singh - Textbook of Anatomy  Upper Limb and Thorax.. Volume 1 (1).pdf
Vishram Singh - Textbook of Anatomy Upper Limb and Thorax.. Volume 1 (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701ComPTIA Overview | Comptia Security+ Book SY0-701
ComPTIA Overview | Comptia Security+ Book SY0-701
 
Activity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdfActivity 01 - Artificial Culture (1).pdf
Activity 01 - Artificial Culture (1).pdf
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptxBasic Civil Engineering first year Notes- Chapter 4 Building.pptx
Basic Civil Engineering first year Notes- Chapter 4 Building.pptx
 
Unit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptxUnit-IV- Pharma. Marketing Channels.pptx
Unit-IV- Pharma. Marketing Channels.pptx
 
Python Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docxPython Notes for mca i year students osmania university.docx
Python Notes for mca i year students osmania university.docx
 
On National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan FellowsOn National Teacher Day, meet the 2024-25 Kenan Fellows
On National Teacher Day, meet the 2024-25 Kenan Fellows
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptxSKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
SKILL OF INTRODUCING THE LESSON MICRO SKILLS.pptx
 

a) In reference to algorithm analysis- explain performance based on th.docx

  • 1. a) In reference to algorithm analysis, explain performance based on the number of basic operations executed b) In the same reference also explain problem cost vs. program cost Solution Answer : ( a )The run-time complexity for the worst-case scenario of a given algorithm can sometimes be evaluated by examining the structure of the algorithm and making some simplifying assumptions.A given computer will take a discrete amount of time to execute each of the instructions involved with carrying out an algorithm. The specific amount of time to carry out a given instruction will vary depending on which instruction is being executed and which computer is executing it. ( b ) Problem cost comprises of cost of understanding ,programming and cost of running a program where as program cost comprises cost of running a program .