SlideShare ist ein Scribd-Unternehmen logo
1 von 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 .

Weitere ähnliche Inhalte

Ähnlich wie 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
 

Ähnlich wie 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
 

Mehr von 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
 

Mehr von 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
 

Kürzlich hochgeladen

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
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
PECB
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
negromaestrong
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
heathfieldcps1
 

Kürzlich hochgeladen (20)

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
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-IIFood Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
Food Chain and Food Web (Ecosystem) EVS, B. Pharmacy 1st Year, Sem-II
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
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
 
Asian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptxAsian American Pacific Islander Month DDSD 2024.pptx
Asian American Pacific Islander Month DDSD 2024.pptx
 
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
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024Mehran University Newsletter Vol-X, Issue-I, 2024
Mehran University Newsletter Vol-X, Issue-I, 2024
 
This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.This PowerPoint helps students to consider the concept of infinity.
This PowerPoint helps students to consider the concept of infinity.
 

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 .