Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose we are given an oracle for the decision problem Is the given graph 3-colorable? (say we want to color every vertex either red, white,

Suppose we are given an oracle for the decision problem Is the given graph 3-colorable? (say we want to color every vertex either red, white, or blue). Given this oracle, we would like to actually find a 3-coloring.

In this problem you will design an algorithm that has the property that if the oracle runs in polynomial time, then your algorithm will run in polynomial time. Please provide the algorithm in python code format.

image text in transcribed a) (Fixing a color) Design a way to force the oracle to color a specific vertex vV a given color. (Hint: consider adding a triangle, or 3-clique to the graph; assume WLOG that one node in the triangle is red, the other is white, and the last one is blue) b) (Search using the oracle) Give an algorithm that runs in a loop to compute the 3coloring. For this part, you can abstractly say statements like "add edges to the graph to fix a given vertex's color to be some given color" (the previous part supplies those details). (c) Briefly argue why your algorithm is correct, and runs in polynomial time assuming the oracle runs in polynomial time

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Larry Ellison Database Genius Of Oracle

Authors: Craig Peters

1st Edition

0766019748, 978-0766019744

More Books

Students also viewed these Databases questions

Question

Explain the pages in white the expert taxes

Answered: 1 week ago

Question

1. Identify three approaches to culture.

Answered: 1 week ago

Question

3. Identify and describe nine cultural value orientations.

Answered: 1 week ago

Question

4. Describe how cultural values influence communication.

Answered: 1 week ago