Results 1 to 5 of 5

Thread: Algorithm/pseudo code help

  1. #1
    Junior Member
    Join Date
    Oct 2014
    HSC
    2015
    Gender
    Male
    Posts
    191
    Rep Power
    4

    Algorithm/pseudo code help

    For software this is the hardest thing for me learn, I can do the simple ones but the medium to hard ones are really challenging and I got no idea how to do them. So how do you guys study for these algorithms

  2. #2
    Cadet
    Join Date
    May 2014
    HSC
    2014
    Gender
    Male
    Posts
    47
    Rep Power
    4

    Re: Algorithm/pseudo code help

    For the medium to hard ones you just have to break it down line by line. What helps me the most is desk checking it or implementing it into Visual Basic (or whatever language your using) and seeing what happens.

    Specifically for sorting algorithms, I found that it was easier to understand once it was visualised. This website was particularly useful for sorting algorithms. http://sorting.at/

    Remember for exams it is better to understand the medium to hard algorithms rather than just memorising them
    Last edited by StrangeBacon; 27 Jan 2015 at 8:15 PM.
    BSc Computer Science @ UNSW

  3. #3
    New Member
    Join Date
    Sep 2008
    HSC
    N/A
    Gender
    Male
    Location
    Dee Why
    Posts
    4
    Rep Power
    8

    Re: Algorithm/pseudo code help

    1) Writing code
    2) Writing code
    3) Writing code

  4. #4
    Cadet
    Join Date
    May 2016
    HSC
    2016
    Gender
    Male
    Posts
    38
    Rep Power
    3

    Re: Algorithm/pseudo code help

    Make a map (mental or other) of how data flows within an algorithm; what data is being sent around to each function keeping in mind the purpose of the system to visualise how input becomes output.

    Use Eclipse (or Sublime, if that's your thing) where possible for proper syntax formatting/highlighting and don't be afraid to modify the code to make it easier to understand, whether it be changing variable names to be more verbose or refactoring chunks of the code to make it more succinct.

    As for psuedo code, I personally think it's much more difficult to understand than actual code... I find it easier to translate it into actual code, but you could also even transform it into a flow chart and work from there.
    Last edited by ThreeSciences; 10 Jul 2016 at 11:23 PM.

  5. #5
    New Member HydricAcid's Avatar
    Join Date
    Jul 2017
    HSC
    2018
    Gender
    Male
    Posts
    9
    Rep Power
    2

    Re: Algorithm/pseudo code help

    Another thing that might help is working top down. Make a very general algorithm that describes each step that has to be done, then break it down and do more and more specific tasks and operations until your code completed all the tasks you made in the beginning.
    Last edited by HydricAcid; 26 Jul 2017 at 12:45 AM. Reason: spelling

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •