SlideShare une entreprise Scribd logo
1  sur  1
1. Provide 2 algorithms in pseudocode that calculates the
median or the mode of a given list. (Choose median or mode).
The mode is the value that is repeated more often in the list.
a. Compare the attributes of both of them and comment their
efficiency. Mention their Order of magnitude in terms of space
and time (number of comparisons)
b. Implement the algorithms in high-level language and run
them several times. Increase the number of the list (You can
create a loop to fill up an array with random numbers)
c. Comment the results
2. Choose one of the algorithms and start writing it in Assembly
code (Just the first 20 Assembly instructions)
3. Based on the assembly instructions in 2), describe the flow of
signals occurring in the ALU, Memory, IO and control unit.

Contenu connexe

Plus de carlstromcurtis

1.  What is disparate-impact discrimination under Title VII an.docx
1.  What is disparate-impact discrimination under Title VII an.docx1.  What is disparate-impact discrimination under Title VII an.docx
1.  What is disparate-impact discrimination under Title VII an.docxcarlstromcurtis
 
1.  What are your 5 favorite apps and why.   Be specific and det.docx
1.  What are your 5 favorite apps and why.   Be specific and det.docx1.  What are your 5 favorite apps and why.   Be specific and det.docx
1.  What are your 5 favorite apps and why.   Be specific and det.docxcarlstromcurtis
 
1.  What does it mean to pierce the corporate veil  Use your .docx
1.  What does it mean to pierce the corporate veil  Use your .docx1.  What does it mean to pierce the corporate veil  Use your .docx
1.  What does it mean to pierce the corporate veil  Use your .docxcarlstromcurtis
 
1.  What are your personal experiences of the educational system  D.docx
1.  What are your personal experiences of the educational system  D.docx1.  What are your personal experiences of the educational system  D.docx
1.  What are your personal experiences of the educational system  D.docxcarlstromcurtis
 
1.  The reading discusses the efforts to revitalize city areas t.docx
1.  The reading discusses the efforts to revitalize city areas t.docx1.  The reading discusses the efforts to revitalize city areas t.docx
1.  The reading discusses the efforts to revitalize city areas t.docxcarlstromcurtis
 
1.  Respond to the Question  Is auscultation of bowel sounds us.docx
1.  Respond to the Question  Is auscultation of bowel sounds us.docx1.  Respond to the Question  Is auscultation of bowel sounds us.docx
1.  Respond to the Question  Is auscultation of bowel sounds us.docxcarlstromcurtis
 
1.  Provide a precise definition for human capital”.  2.  What .docx
1.  Provide a precise definition for human capital”.  2.  What .docx1.  Provide a precise definition for human capital”.  2.  What .docx
1.  Provide a precise definition for human capital”.  2.  What .docxcarlstromcurtis
 
1.  Locate a recent (within six months) article on Net Neutralit.docx
1.  Locate a recent (within six months) article on Net Neutralit.docx1.  Locate a recent (within six months) article on Net Neutralit.docx
1.  Locate a recent (within six months) article on Net Neutralit.docxcarlstromcurtis
 
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docxcarlstromcurtis
 
1.  Define Culture, Family, and Community and discuss how they a.docx
1.  Define Culture, Family, and Community and discuss how they a.docx1.  Define Culture, Family, and Community and discuss how they a.docx
1.  Define Culture, Family, and Community and discuss how they a.docxcarlstromcurtis
 
1.  Give the definition or meaning of each of the following termsco.docx
1.  Give the definition or meaning of each of the following termsco.docx1.  Give the definition or meaning of each of the following termsco.docx
1.  Give the definition or meaning of each of the following termsco.docxcarlstromcurtis
 
1.  Compare and contrast the definitions of health from a public hea.docx
1.  Compare and contrast the definitions of health from a public hea.docx1.  Compare and contrast the definitions of health from a public hea.docx
1.  Compare and contrast the definitions of health from a public hea.docxcarlstromcurtis
 
1.You will provide a brief cultural write-up relating to Japan(2.docx
1.You will provide a brief cultural write-up relating to Japan(2.docx1.You will provide a brief cultural write-up relating to Japan(2.docx
1.You will provide a brief cultural write-up relating to Japan(2.docxcarlstromcurtis
 
1.What, according to Rachels, is psychological egoism What are .docx
1.What, according to Rachels, is psychological egoism What are .docx1.What, according to Rachels, is psychological egoism What are .docx
1.What, according to Rachels, is psychological egoism What are .docxcarlstromcurtis
 
1.What is the international monetary system What was Bretton Woods .docx
1.What is the international monetary system What was Bretton Woods .docx1.What is the international monetary system What was Bretton Woods .docx
1.What is the international monetary system What was Bretton Woods .docxcarlstromcurtis
 
1.What is importance of benefits as a part of employee compensation.docx
1.What is importance of benefits as a part of employee compensation.docx1.What is importance of benefits as a part of employee compensation.docx
1.What is importance of benefits as a part of employee compensation.docxcarlstromcurtis
 
1.Using the Virtual Library, Internet, andor other academic res.docx
1.Using the Virtual Library, Internet, andor other academic res.docx1.Using the Virtual Library, Internet, andor other academic res.docx
1.Using the Virtual Library, Internet, andor other academic res.docxcarlstromcurtis
 
1.What are the differences between Social Media, E-mai.docx
1.What are the differences between Social Media, E-mai.docx1.What are the differences between Social Media, E-mai.docx
1.What are the differences between Social Media, E-mai.docxcarlstromcurtis
 
1.Visit 1 or 2 museums (earn 5 points per visit + 5 points w.docx
1.Visit 1 or 2 museums (earn 5 points per visit + 5 points w.docx1.Visit 1 or 2 museums (earn 5 points per visit + 5 points w.docx
1.Visit 1 or 2 museums (earn 5 points per visit + 5 points w.docxcarlstromcurtis
 
1.The four types of market structures we study in economics are .docx
1.The four types of market structures we study in economics are .docx1.The four types of market structures we study in economics are .docx
1.The four types of market structures we study in economics are .docxcarlstromcurtis
 

Plus de carlstromcurtis (20)

1.  What is disparate-impact discrimination under Title VII an.docx
1.  What is disparate-impact discrimination under Title VII an.docx1.  What is disparate-impact discrimination under Title VII an.docx
1.  What is disparate-impact discrimination under Title VII an.docx
 
1.  What are your 5 favorite apps and why.   Be specific and det.docx
1.  What are your 5 favorite apps and why.   Be specific and det.docx1.  What are your 5 favorite apps and why.   Be specific and det.docx
1.  What are your 5 favorite apps and why.   Be specific and det.docx
 
1.  What does it mean to pierce the corporate veil  Use your .docx
1.  What does it mean to pierce the corporate veil  Use your .docx1.  What does it mean to pierce the corporate veil  Use your .docx
1.  What does it mean to pierce the corporate veil  Use your .docx
 
1.  What are your personal experiences of the educational system  D.docx
1.  What are your personal experiences of the educational system  D.docx1.  What are your personal experiences of the educational system  D.docx
1.  What are your personal experiences of the educational system  D.docx
 
1.  The reading discusses the efforts to revitalize city areas t.docx
1.  The reading discusses the efforts to revitalize city areas t.docx1.  The reading discusses the efforts to revitalize city areas t.docx
1.  The reading discusses the efforts to revitalize city areas t.docx
 
1.  Respond to the Question  Is auscultation of bowel sounds us.docx
1.  Respond to the Question  Is auscultation of bowel sounds us.docx1.  Respond to the Question  Is auscultation of bowel sounds us.docx
1.  Respond to the Question  Is auscultation of bowel sounds us.docx
 
1.  Provide a precise definition for human capital”.  2.  What .docx
1.  Provide a precise definition for human capital”.  2.  What .docx1.  Provide a precise definition for human capital”.  2.  What .docx
1.  Provide a precise definition for human capital”.  2.  What .docx
 
1.  Locate a recent (within six months) article on Net Neutralit.docx
1.  Locate a recent (within six months) article on Net Neutralit.docx1.  Locate a recent (within six months) article on Net Neutralit.docx
1.  Locate a recent (within six months) article on Net Neutralit.docx
 
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
1.  How Subtle Sex Discrimination Works by Nijole V. Benokra.docx
 
1.  Define Culture, Family, and Community and discuss how they a.docx
1.  Define Culture, Family, and Community and discuss how they a.docx1.  Define Culture, Family, and Community and discuss how they a.docx
1.  Define Culture, Family, and Community and discuss how they a.docx
 
1.  Give the definition or meaning of each of the following termsco.docx
1.  Give the definition or meaning of each of the following termsco.docx1.  Give the definition or meaning of each of the following termsco.docx
1.  Give the definition or meaning of each of the following termsco.docx
 
1.  Compare and contrast the definitions of health from a public hea.docx
1.  Compare and contrast the definitions of health from a public hea.docx1.  Compare and contrast the definitions of health from a public hea.docx
1.  Compare and contrast the definitions of health from a public hea.docx
 
1.You will provide a brief cultural write-up relating to Japan(2.docx
1.You will provide a brief cultural write-up relating to Japan(2.docx1.You will provide a brief cultural write-up relating to Japan(2.docx
1.You will provide a brief cultural write-up relating to Japan(2.docx
 
1.What, according to Rachels, is psychological egoism What are .docx
1.What, according to Rachels, is psychological egoism What are .docx1.What, according to Rachels, is psychological egoism What are .docx
1.What, according to Rachels, is psychological egoism What are .docx
 
1.What is the international monetary system What was Bretton Woods .docx
1.What is the international monetary system What was Bretton Woods .docx1.What is the international monetary system What was Bretton Woods .docx
1.What is the international monetary system What was Bretton Woods .docx
 
1.What is importance of benefits as a part of employee compensation.docx
1.What is importance of benefits as a part of employee compensation.docx1.What is importance of benefits as a part of employee compensation.docx
1.What is importance of benefits as a part of employee compensation.docx
 
1.Using the Virtual Library, Internet, andor other academic res.docx
1.Using the Virtual Library, Internet, andor other academic res.docx1.Using the Virtual Library, Internet, andor other academic res.docx
1.Using the Virtual Library, Internet, andor other academic res.docx
 
1.What are the differences between Social Media, E-mai.docx
1.What are the differences between Social Media, E-mai.docx1.What are the differences between Social Media, E-mai.docx
1.What are the differences between Social Media, E-mai.docx
 
1.Visit 1 or 2 museums (earn 5 points per visit + 5 points w.docx
1.Visit 1 or 2 museums (earn 5 points per visit + 5 points w.docx1.Visit 1 or 2 museums (earn 5 points per visit + 5 points w.docx
1.Visit 1 or 2 museums (earn 5 points per visit + 5 points w.docx
 
1.The four types of market structures we study in economics are .docx
1.The four types of market structures we study in economics are .docx1.The four types of market structures we study in economics are .docx
1.The four types of market structures we study in economics are .docx
 

Dernier

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...Poonam Aher Patil
 
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.pptxDr. Sarita Anand
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...Nguyen Thanh Tu Collection
 
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 17Celine George
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...pradhanghanshyam7136
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Association for Project Management
 
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-701bronxfugly43
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxVishalSingh1417
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024Elizabeth Walsh
 
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
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfNirmal Dwivedi
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxJisc
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - Englishneillewis46
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and ModificationsMJDuyan
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Jisc
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxcallscotland1987
 
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.pptxAmanpreet Kaur
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 

Dernier (20)

General Principles of Intellectual Property: Concepts of Intellectual Proper...
General Principles of Intellectual Property: Concepts of Intellectual  Proper...General Principles of Intellectual Property: Concepts of Intellectual  Proper...
General Principles of Intellectual Property: Concepts of Intellectual Proper...
 
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
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
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
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...Kodo Millet  PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
Kodo Millet PPT made by Ghanshyam bairwa college of Agriculture kumher bhara...
 
Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...Making communications land - Are they received and understood as intended? we...
Making communications land - Are they received and understood as intended? we...
 
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
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
Unit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptxUnit-IV; Professional Sales Representative (PSR).pptx
Unit-IV; Professional Sales Representative (PSR).pptx
 
FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024FSB Advising Checklist - Orientation 2024
FSB Advising Checklist - Orientation 2024
 
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...
 
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdfUGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
UGC NET Paper 1 Mathematical Reasoning & Aptitude.pdf
 
Towards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptxTowards a code of practice for AI in AT.pptx
Towards a code of practice for AI in AT.pptx
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Dyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptxDyslexia AI Workshop for Slideshare.pptx
Dyslexia AI Workshop for Slideshare.pptx
 
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
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 

1. Provide 2 algorithms in pseudocode that calculates the median or .docx

  • 1. 1. Provide 2 algorithms in pseudocode that calculates the median or the mode of a given list. (Choose median or mode). The mode is the value that is repeated more often in the list. a. Compare the attributes of both of them and comment their efficiency. Mention their Order of magnitude in terms of space and time (number of comparisons) b. Implement the algorithms in high-level language and run them several times. Increase the number of the list (You can create a loop to fill up an array with random numbers) c. Comment the results 2. Choose one of the algorithms and start writing it in Assembly code (Just the first 20 Assembly instructions) 3. Based on the assembly instructions in 2), describe the flow of signals occurring in the ALU, Memory, IO and control unit.