worst fit code

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Palestiniangurl
    New Member
    • Apr 2008
    • 3

    worst fit code

    Good Day,

    I need help please i want to know the worst-fit code in c++, as soon as possible please.

    thanks alot
  • gpraghuram
    Recognized Expert Top Contributor
    • Mar 2007
    • 1275

    #2
    Originally posted by Palestiniangurl
    Good Day,

    I need help please i want to know the worst-fit code in c++, as soon as possible please.

    thanks alot

    Did you do a search for this in the net?


    Raghu

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by Palestiniangurl
      Good Day,

      I need help please i want to know the worst-fit code in c++, as soon as possible please.

      thanks alot
      If you have the Best-Fit algorithm available you also have the Worst-Fit algorithm:
      simply replace the relevant < operator by the > operator.

      kind regards,

      Jos

      Comment

      • Palestiniangurl
        New Member
        • Apr 2008
        • 3

        #4
        Originally posted by JosAH
        If you have the Best-Fit algorithm available you also have the Worst-Fit algorithm:
        simply replace the relevant < operator by the > operator.

        kind regards,

        Jos
        Thanks alot for replying both of you brothers. regarding if i did a research for the worst fit, yeah i did but i got codes in java not c++.
        i'll do more researchs tomorrow, wish to find somthing.
        I asked for help cause am a senior student and am doing my senior design project in smart home applications, so we as agroup suppose to write a code for the memomry of the OSGi. and we need to simulate the code of worst and best fit to show the difference between these codes and our code. However we still not done with our code.
        any help in this field pleeeeease.
        and thanks alot :)
        Best Regards

        Comment

        Working...