Computer Science Homework Solutions
Problem
#19308

Simple algorithm using the big theta - notation

Sometimes a slight change in a problem can significantly alter the form of its solution.  For example, find a simple algorithm for solving the following problem and classify it using big-theta notation:

Divide a group of people into two disjoint subgroups (of arbitrary size) such that the difference in the total ages of the members of the two subgroups is as large as possible.
------------------
formular :- all algorithms whose graphs have a shape of parabola such as an insertion sort are classified in the class represented by (n^2) " read big-theta of n squared"

All algorithms whose graph have the shape of a logarithmic expression such as the binary search fall in the class represented by (lg n) "read big-theta of log n"

Solution
What is this?
By OTA - Overall OTA Rating
Shawn Laliberte - 4.8/5
Purchase Cost Now
$2.19 CAD (was ~$11.97)
Included in Download
  • Plain text response
  • Attached file(s):
    • 19308sol.doc
$2.19 Instant Download
Add to Cart
Why you can trust BrainMass.com
  • Your Information is Secure
  • Best Online Academic Help Service
  • Students find real academic Success
Related Solutions
Browse