/*! This file is auto-generated */ .wp-block-button__link{color:#fff;background-color:#32373c;border-radius:9999px;box-shadow:none;text-decoration:none;padding:calc(.667em + 2px) calc(1.333em + 2px);font-size:1.125em}.wp-block-file__button{background:#32373c;color:#fff;text-decoration:none} Q13P Let MODEXP={ha,b,c,pi|a,b,c,and... [FREE SOLUTION] | 91Ó°ÊÓ

91Ó°ÊÓ

Let MODEXP={ha,b,c,pi|a,b,c,andpare positive binary integers such that ab≡cmodp}.

Show that MODEXP∈P. (Note that the most obvious algorithm doesn’t run in polynomial time. Hint: Try it first where b is a power of 2 .)

Short Answer

Expert verified

The solution is,

MODEXP=a,b,c,p|a,b,candparebinaryintegerssuchthatab=c(modp)

Step by step solution

01

To Comparable Modulo

Throughout this segment, all of the numbers represent integers. If two integers differ by a multiple ofpforanyplargerthan1, we say they are comparable modulop.

The xyif the integers xandyare equal modulo pmodpWe'll call the lowest nonnegative yxmodp,wherexymodp.Every number modulo pis comparable to a member of the set Zp=0,...,p1.

02

To Algorithmmodulo Test

Whenever we state that p satisfies with Fermat test at a, we imply that aP-1modp

Assuming p satisfies the Fermat test at such a , we can get square roots of 1sinceaP-1mod p=1, and soaP-1ap1/2modp is a square root of 1.

They prove first that maybe if phis prime, there is no witness, and hence no branch of the algorithm rejects ap1modp6=1. if a were a stage4 witness, and Fermat's little theorem predicts that p is composite

Unlock Step-by-Step Solutions & Ace Your Exams!

  • Full Textbook Solutions

    Get detailed explanations and key concepts

  • Unlimited Al creation

    Al flashcards, explanations, exams and more...

  • Ads-free access

    To over 500 millions flashcards

  • Money-back guarantee

    We refund you if you fail your exam.

Over 30 million students worldwide already upgrade their learning with 91Ó°ÊÓ!

One App. One Place for Learning.

All the tools & learning materials you need for study success - in one app.

Get started for free

Most popular questions from this chapter

A Turing machine with left reset is similar to an ordinary Turing machine, but the transition function has the form

δ : Q × Γ−→Q × Γ × {R, RESET}.

If δ(q, a) = (r, b, RESET), when the machine is in state q reading an a, the machine’s head jumps to the left-hand end of the tape after it writes b on the tape and enters state r. Note that these machines do not have the usual ability to move the head one symbol left. Show that Turing machines with left reset recognize the class of Turing-recognizable languages.

A queue automaton is like a push-down automaton except that the stack is replaced by a queue. A queue is a tape allowing symbols to be written only on the left-hand end and read only at the right-hand end. Each write operation (we’ll call it a push) adds a symbol to the left-hand end of the queue and each read operation (we’ll call it a pull) reads and removes a symbol at the right-hand end. As with a PDA, the input is placed on a separate read-only input tape, and the head on the input tape can move only from left to right. The input tape contains a cell with a blank symbol following the input, so that the end of the input can be detected. A queue automaton accepts its input by entering a special accept state at any time. Show that a language can be recognized by a deterministic queue automaton iff the language is Turing-recognizable.

a). Let C be a context-free language and R be a regular language. Prove that the languageC∩Ris context free.

b). Let A= { w|w∈{a,b,c}*andwcontains equal numbers of a’s,b’s,andc’s}. Use part(a) to show that A is not a CFL

Write formal descriptions of the following sets.

  1. The set containing the numbers1,10, and100
  2. The set containing all integers that are greater than5
  3. The set containing all natural numbers that are less than5
  4. The set containing the string aba
  5. The set containing the empty string
  6. The set containing nothing at all

Question: Answer each part TRUE or FALSE.

a.2n=O(n)b.n2=O(n)·Ac.n2=O(nlog2n)·Ad.nlogn=O(n2)e.3n=2O(n)f.22n=O(22n)

See all solutions

Recommended explanations on Computer Science Textbooks

View all explanations

What do you think about this solution?

We value your feedback to improve our textbook solutions.

Study anywhere. Anytime. Across all devices.