SlideShare a Scribd company logo
1 of 1
Download to read offline
Question 4: Let n2 be an integer and let G be the nn undirected grid graph: The vertices of G are
the grid points (i,j) for 1in and 1jn. Each vertex (i,j) has neighbors (i1,j),(i+1,j),(i,j1), and (i,j+1)
(provided their coordinates are in the set {1,2,,n}). Each vertex of this graph stores a number; we
assume that all these n2 numbers are distinct. A vertex is called awesome, if the number stored at
this vertex is larger than the numbers stored at all of its neighbors. In the example below, n=4 and
both vertices (1,1) and (3,2) are awesome. - Prove that there always exists at least one awesome
vertex. - Give an algorithm that finds an awesome vertex in O(n) time. Note that the graph G has n
2 vertices and (n2) edges.

More Related Content

More from admin447081

1a Cul de los siguientes no es un ejemplo de un accionist.pdf
1a Cul de los siguientes no es un ejemplo de un accionist.pdf1a Cul de los siguientes no es un ejemplo de un accionist.pdf
1a Cul de los siguientes no es un ejemplo de un accionist.pdf
admin447081
 
CASO INTEGRATIVO 30 IKEA estilo escandinavo Detrs de l.pdf
CASO INTEGRATIVO 30  IKEA estilo escandinavo  Detrs de l.pdfCASO INTEGRATIVO 30  IKEA estilo escandinavo  Detrs de l.pdf
CASO INTEGRATIVO 30 IKEA estilo escandinavo Detrs de l.pdf
admin447081
 
1 Provide three examples of automatic data classifications .pdf
1 Provide three examples of automatic data classifications .pdf1 Provide three examples of automatic data classifications .pdf
1 Provide three examples of automatic data classifications .pdf
admin447081
 
Theodore E Lariat is a single taxpayer born on September 22.pdf
Theodore E Lariat is a single taxpayer born on September 22.pdfTheodore E Lariat is a single taxpayer born on September 22.pdf
Theodore E Lariat is a single taxpayer born on September 22.pdf
admin447081
 
Use C++ for all 1 bool mapContainsKeysarrayltintgt nu.pdf
Use C++ for all  1 bool mapContainsKeysarrayltintgt nu.pdfUse C++ for all  1 bool mapContainsKeysarrayltintgt nu.pdf
Use C++ for all 1 bool mapContainsKeysarrayltintgt nu.pdf
admin447081
 
This code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfThis code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdf
admin447081
 
Denver Uluslararas Havaliman DIA hizmete zamannda uular.pdf
Denver Uluslararas Havaliman DIA hizmete zamannda uular.pdfDenver Uluslararas Havaliman DIA hizmete zamannda uular.pdf
Denver Uluslararas Havaliman DIA hizmete zamannda uular.pdf
admin447081
 
OJ Simpson was an American football legend After his Hall.pdf
OJ Simpson was an American football legend After his Hall.pdfOJ Simpson was an American football legend After his Hall.pdf
OJ Simpson was an American football legend After his Hall.pdf
admin447081
 
Many times when we login to a system we use a usernamepass.pdf
Many times when we login to a system we use a usernamepass.pdfMany times when we login to a system we use a usernamepass.pdf
Many times when we login to a system we use a usernamepass.pdf
admin447081
 

More from admin447081 (20)

1a Cul de los siguientes no es un ejemplo de un accionist.pdf
1a Cul de los siguientes no es un ejemplo de un accionist.pdf1a Cul de los siguientes no es un ejemplo de un accionist.pdf
1a Cul de los siguientes no es un ejemplo de un accionist.pdf
 
DEF Company also has preferred stock outstanding that pays a.pdf
DEF Company also has preferred stock outstanding that pays a.pdfDEF Company also has preferred stock outstanding that pays a.pdf
DEF Company also has preferred stock outstanding that pays a.pdf
 
4 Explain the usage of each tool that you identified above.pdf
4 Explain the usage of each tool that you identified above.pdf4 Explain the usage of each tool that you identified above.pdf
4 Explain the usage of each tool that you identified above.pdf
 
CASO INTEGRATIVO 30 IKEA estilo escandinavo Detrs de l.pdf
CASO INTEGRATIVO 30  IKEA estilo escandinavo  Detrs de l.pdfCASO INTEGRATIVO 30  IKEA estilo escandinavo  Detrs de l.pdf
CASO INTEGRATIVO 30 IKEA estilo escandinavo Detrs de l.pdf
 
1 a Cul es el nombre de la esfera que se encuentra en e.pdf
1  a Cul es el nombre de la esfera que se encuentra en e.pdf1  a Cul es el nombre de la esfera que se encuentra en e.pdf
1 a Cul es el nombre de la esfera que se encuentra en e.pdf
 
According to US Census data 716 of Americans are age 21.pdf
According to US Census data 716 of Americans are age 21.pdfAccording to US Census data 716 of Americans are age 21.pdf
According to US Census data 716 of Americans are age 21.pdf
 
1 Sosyal medya pazarlamasn SMM kullanmann avantajlar ile .pdf
1 Sosyal medya pazarlamasn SMM kullanmann avantajlar ile .pdf1 Sosyal medya pazarlamasn SMM kullanmann avantajlar ile .pdf
1 Sosyal medya pazarlamasn SMM kullanmann avantajlar ile .pdf
 
10 points Let continuous variables X1Xk be independentl.pdf
10 points Let continuous variables X1Xk be independentl.pdf10 points Let continuous variables X1Xk be independentl.pdf
10 points Let continuous variables X1Xk be independentl.pdf
 
1 Provide three examples of automatic data classifications .pdf
1 Provide three examples of automatic data classifications .pdf1 Provide three examples of automatic data classifications .pdf
1 Provide three examples of automatic data classifications .pdf
 
Theodore E Lariat is a single taxpayer born on September 22.pdf
Theodore E Lariat is a single taxpayer born on September 22.pdfTheodore E Lariat is a single taxpayer born on September 22.pdf
Theodore E Lariat is a single taxpayer born on September 22.pdf
 
Use C++ for all 1 bool mapContainsKeysarrayltintgt nu.pdf
Use C++ for all  1 bool mapContainsKeysarrayltintgt nu.pdfUse C++ for all  1 bool mapContainsKeysarrayltintgt nu.pdf
Use C++ for all 1 bool mapContainsKeysarrayltintgt nu.pdf
 
This code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdfThis code i would want to work ssh compiling for the this ta.pdf
This code i would want to work ssh compiling for the this ta.pdf
 
Stakeholder strategySocialresponsibility AFI strategy Vis.pdf
Stakeholder strategySocialresponsibility AFI strategy    Vis.pdfStakeholder strategySocialresponsibility AFI strategy    Vis.pdf
Stakeholder strategySocialresponsibility AFI strategy Vis.pdf
 
Python Create a function that displays a list of choices to .pdf
Python Create a function that displays a list of choices to .pdfPython Create a function that displays a list of choices to .pdf
Python Create a function that displays a list of choices to .pdf
 
Denver Uluslararas Havaliman DIA hizmete zamannda uular.pdf
Denver Uluslararas Havaliman DIA hizmete zamannda uular.pdfDenver Uluslararas Havaliman DIA hizmete zamannda uular.pdf
Denver Uluslararas Havaliman DIA hizmete zamannda uular.pdf
 
OJ Simpson was an American football legend After his Hall.pdf
OJ Simpson was an American football legend After his Hall.pdfOJ Simpson was an American football legend After his Hall.pdf
OJ Simpson was an American football legend After his Hall.pdf
 
On January 1 Year 1 Dell Inc contracted with the city of.pdf
On January 1 Year 1 Dell Inc contracted with the city of.pdfOn January 1 Year 1 Dell Inc contracted with the city of.pdf
On January 1 Year 1 Dell Inc contracted with the city of.pdf
 
Many times when we login to a system we use a usernamepass.pdf
Many times when we login to a system we use a usernamepass.pdfMany times when we login to a system we use a usernamepass.pdf
Many times when we login to a system we use a usernamepass.pdf
 
Match the 7 wastes to their brief description Idle time Prod.pdf
Match the 7 wastes to their brief description Idle time Prod.pdfMatch the 7 wastes to their brief description Idle time Prod.pdf
Match the 7 wastes to their brief description Idle time Prod.pdf
 
In a recent Super Bowl a TV network predicted that 27 of t.pdf
In a recent Super Bowl a TV network predicted that 27 of t.pdfIn a recent Super Bowl a TV network predicted that 27 of t.pdf
In a recent Super Bowl a TV network predicted that 27 of t.pdf
 

Recently uploaded

Recently uploaded (20)

Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of TransportBasic Civil Engineering notes on Transportation Engineering & Modes of Transport
Basic Civil Engineering notes on Transportation Engineering & Modes of Transport
 
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...When Quality Assurance Meets Innovation in Higher Education - Report launch w...
When Quality Assurance Meets Innovation in Higher Education - Report launch w...
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
AIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.pptAIM of Education-Teachers Training-2024.ppt
AIM of Education-Teachers Training-2024.ppt
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptxAnalyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
Analyzing and resolving a communication crisis in Dhaka textiles LTD.pptx
 
OSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & SystemsOSCM Unit 2_Operations Processes & Systems
OSCM Unit 2_Operations Processes & Systems
 
PSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptxPSYPACT- Practicing Over State Lines May 2024.pptx
PSYPACT- Practicing Over State Lines May 2024.pptx
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjjStl Algorithms in C++ jjjjjjjjjjjjjjjjjj
Stl Algorithms in C++ jjjjjjjjjjjjjjjjjj
 
Graduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptxGraduate Outcomes Presentation Slides - English (v3).pptx
Graduate Outcomes Presentation Slides - English (v3).pptx
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
Major project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategiesMajor project report on Tata Motors and its marketing strategies
Major project report on Tata Motors and its marketing strategies
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
How to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptxHow to Manage Website in Odoo 17 Studio App.pptx
How to Manage Website in Odoo 17 Studio App.pptx
 
Including Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdfIncluding Mental Health Support in Project Delivery, 14 May.pdf
Including Mental Health Support in Project Delivery, 14 May.pdf
 
MOOD STABLIZERS DRUGS.pptx
MOOD     STABLIZERS           DRUGS.pptxMOOD     STABLIZERS           DRUGS.pptx
MOOD STABLIZERS DRUGS.pptx
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
An Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge AppAn Overview of the Odoo 17 Knowledge App
An Overview of the Odoo 17 Knowledge App
 

Question 4 Let n2 be an integer and let G be the nn undire.pdf

  • 1. Question 4: Let n2 be an integer and let G be the nn undirected grid graph: The vertices of G are the grid points (i,j) for 1in and 1jn. Each vertex (i,j) has neighbors (i1,j),(i+1,j),(i,j1), and (i,j+1) (provided their coordinates are in the set {1,2,,n}). Each vertex of this graph stores a number; we assume that all these n2 numbers are distinct. A vertex is called awesome, if the number stored at this vertex is larger than the numbers stored at all of its neighbors. In the example below, n=4 and both vertices (1,1) and (3,2) are awesome. - Prove that there always exists at least one awesome vertex. - Give an algorithm that finds an awesome vertex in O(n) time. Note that the graph G has n 2 vertices and (n2) edges.