SlideShare uma empresa Scribd logo
1 de 1
Baixar para ler offline
Do them by hand Part II: Problem Solving: Question 1 (10 points). With respect to the
programming problem in Part I, What is the tightest asymptotic running time for each of your
operations, expressed in terms of the number of digits for the two operands, m and n, of each
operation? Clearly justify your answer. Question 2. (20 points) Consider the following General
Tree: a. (5 points) Show the breadth first traversal of the above tree. b. (5 points) Show the
preorder traversal of the above tree. c. (5 points) Show the post-order traversal of the above tree.
d. (5 points) Show the in-order traversal of the subtree rooted at node 30 . Question 3. (20 points)
a. (10 points) Construct a BST by inserting the following keys into an empty BST, in order.
15,17,10,2,19,18,14,8,7,16,3,4,11. b. (5 points) Delete the node with value 15 from the resulting
BST tree in part "a." by copying. c. (5 points) Delete the node with value 15 from the resulting
BST tree in part "a." by merging.

Mais conteúdo relacionado

Semelhante a Do them by hand Part II Problem Solving Question 1 (10 points). Wi.pdf

Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
Sreeju Sree
 
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
Task4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docxTask4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docx
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
josies1
 

Semelhante a Do them by hand Part II Problem Solving Question 1 (10 points). Wi.pdf (20)

Ec2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.orgEc2203 digital electronics questions anna university by www.annaunivedu.org
Ec2203 digital electronics questions anna university by www.annaunivedu.org
 
MATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdfMATLAB Questions and Answers.pdf
MATLAB Questions and Answers.pdf
 
Gate-Cs 1996
Gate-Cs 1996Gate-Cs 1996
Gate-Cs 1996
 
Sample quizz test
Sample quizz testSample quizz test
Sample quizz test
 
algo1
algo1algo1
algo1
 
Ss matlab solved
Ss matlab solvedSs matlab solved
Ss matlab solved
 
Đề Thi HK2 Toán 7 - THCS Tô Ký
Đề Thi HK2 Toán 7 - THCS Tô KýĐề Thi HK2 Toán 7 - THCS Tô Ký
Đề Thi HK2 Toán 7 - THCS Tô Ký
 
3rd Semester Computer Science and Engineering (ACU) Question papers
3rd Semester Computer Science and Engineering  (ACU) Question papers3rd Semester Computer Science and Engineering  (ACU) Question papers
3rd Semester Computer Science and Engineering (ACU) Question papers
 
Project advance itt
Project advance ittProject advance itt
Project advance itt
 
A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1A109211002 switchingtheoryandlogicdesign1
A109211002 switchingtheoryandlogicdesign1
 
Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014Mcs 10 104 compiler design dec 2014
Mcs 10 104 compiler design dec 2014
 
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
Task4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docxTask4output.txt 2  5  9 13 15 10  1  0  3  7 11 14 1.docx
Task4output.txt 2 5 9 13 15 10 1 0 3 7 11 14 1.docx
 
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
 
X10707 (me8691)
X10707 (me8691)X10707 (me8691)
X10707 (me8691)
 
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
[Question Paper] Fundamentals of Digital Computing (Revised Course) [January ...
 
[Question Paper] Computer Graphics (Old Course) [June / 2014]
[Question Paper] Computer Graphics (Old Course) [June / 2014][Question Paper] Computer Graphics (Old Course) [June / 2014]
[Question Paper] Computer Graphics (Old Course) [June / 2014]
 
11th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 201311th information practices paper CBSE INDIA 2012 2013
11th information practices paper CBSE INDIA 2012 2013
 
2013-June: 3rd Semester E & C Question Papers
2013-June: 3rd Semester E & C Question Papers2013-June: 3rd Semester E & C Question Papers
2013-June: 3rd Semester E & C Question Papers
 
3rd Semester Electronic and Communication Engineering (2013-June) Question P...
3rd  Semester Electronic and Communication Engineering (2013-June) Question P...3rd  Semester Electronic and Communication Engineering (2013-June) Question P...
3rd Semester Electronic and Communication Engineering (2013-June) Question P...
 
Math 116 pres. 5
Math 116 pres. 5Math 116 pres. 5
Math 116 pres. 5
 

Mais de sumyad25

El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdfEl auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
sumyad25
 
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdfEjemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
sumyad25
 
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdfDwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
sumyad25
 

Mais de sumyad25 (20)

El entorno macro NO incluye (seleccione todo lo que corresponda).pdf
El entorno macro NO incluye (seleccione todo lo que corresponda).pdfEl entorno macro NO incluye (seleccione todo lo que corresponda).pdf
El entorno macro NO incluye (seleccione todo lo que corresponda).pdf
 
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdfEl auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
El auge y la ca�da de Nokia en los tel�fonos m�viles Nokia surgi� .pdf
 
El 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdf
El 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdfEl 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdf
El 31 de mayo, la cuenta de Efectivo de Money Corporation mostr� u.pdf
 
El 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdf
El 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdfEl 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdf
El 1 de mayo, JT Engineering ten�a un inventario inicial de 200 unid.pdf
 
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdfEjemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
Ejemplo de estudio de caso Robin Hood Joseph Lampel, Universidad .pdf
 
Effective communication requires a clear understanding of the object.pdf
Effective communication requires a clear understanding of the object.pdfEffective communication requires a clear understanding of the object.pdf
Effective communication requires a clear understanding of the object.pdf
 
Economic situation The economy is suffering from an unemployment p.pdf
Economic situation  The economy is suffering from an unemployment p.pdfEconomic situation  The economy is suffering from an unemployment p.pdf
Economic situation The economy is suffering from an unemployment p.pdf
 
Easy Company, a corporation, is considering a variety of equity fina.pdf
Easy Company, a corporation, is considering a variety of equity fina.pdfEasy Company, a corporation, is considering a variety of equity fina.pdf
Easy Company, a corporation, is considering a variety of equity fina.pdf
 
Each DQ post must contain at least one citation from a source in sup.pdf
Each DQ post must contain at least one citation from a source in sup.pdfEach DQ post must contain at least one citation from a source in sup.pdf
Each DQ post must contain at least one citation from a source in sup.pdf
 
Duygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdf
Duygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdfDuygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdf
Duygusal zeka (EI) ile ilgili aadaki ifadelerden hangisi dorudur .pdf
 
Durum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdf
Durum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdfDurum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdf
Durum L�tfen aadaki durumu Art. 101 TFEU ve VBER. Cnin Sanat anlam.pdf
 
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdfDwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
Dwight Schrute, Scranton, PA konumu i�in bir kat irketi olan Dunder .pdf
 
During the month of June, Ace Incorporated purchased goods from two .pdf
During the month of June, Ace Incorporated purchased goods from two .pdfDuring the month of June, Ace Incorporated purchased goods from two .pdf
During the month of June, Ace Incorporated purchased goods from two .pdf
 
Durante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdf
Durante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdfDurante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdf
Durante el mes de agosto, Boyce Company tuvo las siguientes transacc.pdf
 
Dukane Company expects to produce 1.2 million units of product XX in.pdf
Dukane Company expects to produce 1.2 million units of product XX in.pdfDukane Company expects to produce 1.2 million units of product XX in.pdf
Dukane Company expects to produce 1.2 million units of product XX in.pdf
 
Doru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdf
Doru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdfDoru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdf
Doru mu Yanl m sorusu 1.Finansal tablolarn yaynlanmasndan sonra or.pdf
 
Drop down options DECREASE or INCREASE The graph below is associate.pdf
Drop down options DECREASE or INCREASE The graph below is associate.pdfDrop down options DECREASE or INCREASE The graph below is associate.pdf
Drop down options DECREASE or INCREASE The graph below is associate.pdf
 
DRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdf
DRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdfDRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdf
DRK, Inc., halka arzda 200.000 hisse satt. Sigortacnn a�k �cretleri .pdf
 
Dmitri has saved $30 per week to buy a preowned gaming console. He c.pdf
Dmitri has saved $30 per week to buy a preowned gaming console. He c.pdfDmitri has saved $30 per week to buy a preowned gaming console. He c.pdf
Dmitri has saved $30 per week to buy a preowned gaming console. He c.pdf
 
Draw particle trajectories representing the transformation of the ye.pdf
Draw particle trajectories representing the transformation of the ye.pdfDraw particle trajectories representing the transformation of the ye.pdf
Draw particle trajectories representing the transformation of the ye.pdf
 

Último

Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
kauryashika82
 
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
 
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)

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.
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
Understanding Accommodations and Modifications
Understanding  Accommodations and ModificationsUnderstanding  Accommodations and Modifications
Understanding Accommodations and Modifications
 
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
 
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...
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
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.
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17How to Create and Manage Wizard in Odoo 17
How to Create and Manage Wizard in Odoo 17
 
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
 
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
 
Spatium Project Simulation student brief
Spatium Project Simulation student briefSpatium Project Simulation student brief
Spatium Project Simulation student brief
 
Sociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning ExhibitSociology 101 Demonstration of Learning Exhibit
Sociology 101 Demonstration of Learning Exhibit
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
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
 
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...
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17  How to Extend Models Using Mixin ClassesMixin Classes in Odoo 17  How to Extend Models Using Mixin Classes
Mixin Classes in Odoo 17 How to Extend Models Using Mixin Classes
 
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...
 
Food safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdfFood safety_Challenges food safety laboratories_.pdf
Food safety_Challenges food safety laboratories_.pdf
 

Do them by hand Part II Problem Solving Question 1 (10 points). Wi.pdf

  • 1. Do them by hand Part II: Problem Solving: Question 1 (10 points). With respect to the programming problem in Part I, What is the tightest asymptotic running time for each of your operations, expressed in terms of the number of digits for the two operands, m and n, of each operation? Clearly justify your answer. Question 2. (20 points) Consider the following General Tree: a. (5 points) Show the breadth first traversal of the above tree. b. (5 points) Show the preorder traversal of the above tree. c. (5 points) Show the post-order traversal of the above tree. d. (5 points) Show the in-order traversal of the subtree rooted at node 30 . Question 3. (20 points) a. (10 points) Construct a BST by inserting the following keys into an empty BST, in order. 15,17,10,2,19,18,14,8,7,16,3,4,11. b. (5 points) Delete the node with value 15 from the resulting BST tree in part "a." by copying. c. (5 points) Delete the node with value 15 from the resulting BST tree in part "a." by merging.