100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Algorithms Unit Test UPDATED ACTUAL Questions and CORRECT Answers $9.99   Add to cart

Exam (elaborations)

Algorithms Unit Test UPDATED ACTUAL Questions and CORRECT Answers

 1 view  0 purchase
  • Course
  • Algorithms Unit
  • Institution
  • Algorithms Unit

Algorithms Unit Test UPDATED ACTUAL Questions and CORRECT Answers Which of these best describes which algorithms are more efficient with parallel computing - CORRECT ANSWER- An algorithm that benefits from parallel computing is one that can be broken down into smaller independent operations ...

[Show more]

Preview 2 out of 13  pages

  • October 25, 2024
  • 13
  • 2024/2025
  • Exam (elaborations)
  • Questions & answers
  • Algorithms Unit
  • Algorithms Unit
avatar-seller
MGRADES
Algorithms Unit Test UPDATED ACTUAL
Questions and CORRECT Answers
Which of these best describes which algorithms are more efficient with parallel computing -
CORRECT ANSWER✔✔- An algorithm that benefits from parallel computing is one that
can be broken down into smaller independent operations


A software engineer at a mapping company is asked to write a geocoding program that can
convert 6000,000 addresses into latitude/longitude pairs. The geocoding needs to be
completed by the next day, in time for a company deadline
When the engineer tries running the program on their computer, they realize that their
computer cannot complete the fast quickly enough. They decide to use distributed computing
to improve the performance - CORRECT ANSWER✔✔- A distribution computing solution
can geocode multiple addresses at once by using multiple computers


The two algorithms below are both intended to calculate the sum of cubes from 1 to n, where
n is any positive integer.
For example, if n is 3, the algorithms should calculate a sum of 36, from 1^3 + 2^3 + 3^3. -
CORRECT ANSWER✔✔- Both algorithms calculate the correct sum.


TensorFlow is an open-source machine learning platform with support for distributed
computing.
This chart shows the speedup gained from using TensorFlow to train a neural network with an
increasing number of computers: - CORRECT ANSWER✔✔- Distributed computing can
reduce the time it takes to solve large problems.


An app for electric car owners includes a feature that shows them the charging station that's
the nearest to them.


To calculate that, the app first finds the 10 closest stations according to their beeline distance
from the user address. It then uses the procedure below to calculate the driving distance to
each station and returns the station with the shortest distance.
The call to calcDrivingDistance() takes 3 seconds to return a result, as the driving directions
algorithm requires searching through many possible routes to calculate the optimal route. The
other operations, like incrementing the index and comparing the distances, take only a few
nanoseconds. - CORRECT ANSWER✔✔- 30 seconds

, The following algorithm displays a sequence of 10 odd squares:
Start by setting n to 1.
Repeat 10 times:
Multiply n by itself and display the result

Add 2 to n - CORRECT ANSWER✔✔- n ← 1
REPEAT 10 TIMES {
result ← n * n
DISPLAY(result)
n←n+2
}


Which of these applications is NOT an example of distributed computing? - CORRECT
ANSWER✔✔- Premiere Pro is a video editing program from Adobe that allows users to
compose multiple videos and add special effects. Exporting the final video requires a lot of
computational power, so Premiere assigns different parts of the exporting task to each of the
computer's processors (as long as the computer has multiple processors).


An online news website relies on in-page advertisements to make money. Their article pages
have multiple slots for advertisements, and each slot can be used for a full-size ad or multiple
smaller ads. Advertisers specify their size and desired display count per day. - CORRECT
ANSWER✔✔- Use a heuristic-based algorithm that suggests an advertisement schedule that
is close to optimal.


Han develops an algorithm to compute the average amount of time that users watch a
particular video on Khan Academy. He then realizes that the average is very low, due to a
large number of times with duration "0" or "1", and decides that the algorithm should ignore
those durations. - CORRECT ANSWER✔✔- Selection


One way to measure the efficiency of an algorithm is to count how many steps it requires for
different input sizes and then use a function to describe how the number of steps increases in
proportion to the input size.
The table below lists various efficiencies, where n represents the input size. - CORRECT
ANSWER✔✔- n^2 + 6n = polynomial
6^n = superpolynomial

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller MGRADES. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.99. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

83637 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.99
  • (0)
  Add to cart