Help on Lisp programming question.

Lisp programming question help!?

  • hey please help me on this question!! it's in japanese.. create a list with elements including name, age, place. then make a function called "quick-sort-plist" which quicksorts the list according to age. i'm dumbfounded by this. help me please!!

  • Answer:

    It's been so long since I did LISP that all I can do is tell you about quicksort (which is not the most efficient algo for sorting) you are making a list the list has elements the elements have fields name, age, place it requires two loops, or recursion for each element in list less one of the total if ( element.age > element.next.age ) temp = element element = element.next element.next = temp the outer loop to the above repeats list elements qty-1 Hope that kiind of helps. I started to go find my old LISP books, then I forgot why.

powdypan at Yahoo! Answers Visit the source

Was this solution helpful to you?

Just Added Q & A:

Find solution

For every problem there is a solution! Proved by Solucija.

  • Got an issue and looking for advice?

  • Ask Solucija to search every corner of the Web for help.

  • Get workable solutions and helpful tips in a moment.

Just ask Solucija about an issue you face and immediately get a list of ready solutions, answers and tips from other Internet users. We always provide the most suitable and complete answer to your question at the top, along with a few good alternatives below.