Question

algorithm’s complexity is measured on input size instead of input values. Please indicate the input size...

algorithm’s complexity is measured on input size instead of input values. Please indicate the input size for an algorithm that solves the following problem: Given: a number n and two primes p, q, Question: is it the case that n = p · q? So I want a help Determining the input size.

0 0
Add a comment Improve this question Transcribed image text
Answer #1

The questions objective is skeptical.

If there are three values to operate on as 'n', 'p' and 'q', the size of the input, in terms of count of variables used is. '3' integers. On the other hand, the size of three integers (considering 2 byte per integer), in regard to storage will be 3 x 2 bytes = 6 bytes.

The task of determining the equality can be done by s simple logical expression as: n==(p*q)

Please comment in case you want help in further direction.

Add a comment
Know the answer?
Add Answer to:
algorithm’s complexity is measured on input size instead of input values. Please indicate the input size...
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for? Ask your own homework help question. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
Active Questions
ADVERTISEMENT