how to evaluate sorting algorithms

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bary2000
    New Member
    • Jan 2010
    • 6

    #1

    how to evaluate sorting algorithms

    hi i am writing a program in C++ to evaluate some sorting algorithms and i need to measure the hoe much memory the algorithms take to perform the sorting but i don't know if C++ have any tools or codes do this task.
  • shabinesh
    New Member
    • Jan 2007
    • 61

    #2
    time command if you are using linux

    $ time `command`

    Comment

    • bary2000
      New Member
      • Jan 2010
      • 6

      #3
      hi no i am using C++

      Comment

      • Banfa
        Recognized Expert Expert
        • Feb 2006
        • 9067

        #4
        No Linux is an operating system, it is perfectly feasible to compile C++ programs on Linux.

        C++ has no built in mechanisms for taking the measurements you want but you could try a profiler.

        Comment

        • shabinesh
          New Member
          • Jan 2007
          • 61

          #5
          I just meant ,if you are developing your C++ program on Linux platform then you can use

          $ time a.out // a.out executable program

          to see the execution speed of your program :)

          Comment

          Working...