Question
Can you help me solve this question please!!! I have tried to solve this but I am really confused Suppose we gave a method for
Can you help me solve this question please!!! I have tried to solve this but I am really confused
Suppose we gave a method for encoding instances of SAT as strings over {0, 1}. In this problem, we consider encoding instances of the decision problem Decision Longest Path.
A. Devise, in detail, a method for encoding an instance G, s, t, K of Decision Longest Path as a string over {0, 1}. You may assume that the vertex set is V = {1, 2, . . . , n}, for some n 0.
B. Let G2 be the directed graph G2 = (V2, E2) = ({1, 2, 3, 4}, {(1, 2),(1, 4),(2, 3),(3, 4)}). Using your encoding method, give the steps required to encode G2, 1, 4, 2 as a binary string. Give the substrings that are encoded as well as the final encoded instance.
C. How many bits are used to encode G2, 1, 4, 2?
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started