Write a PRAM algorithm using n pus

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Karnati
    New Member
    • Feb 2014
    • 3

    Write a PRAM algorithm using n pus

    An array of n employee names NAME and a corresponding array of n employee salaries SAL.Assume that a personn in Name[i] earns SAl[i].The entries are sorted by name,not salary.

    Given an employee name,determine how many employee make more than that person.
  • Karnati
    New Member
    • Feb 2014
    • 3

    #2
    Just give an idea about this program.

    Comment

    • rules engine
      New Member
      • Jun 2014
      • 15

      #3
      For a particular employee, go through the salary array and find out all indexes which is greater than his salary, then print all employees using the indexes.

      Comment

      Working...