Re: visualisation a programme.
Re: visualisation a programme. Hi victorious!thanks for your great help. ThanksIshan URL: http://forum.audiogames.net/viewtopic.php?pid=286467#p286467 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. Do you mean for the sorting? Think about how else you'd do sorting otherwise - the most intuitive solution is to use a temporary variable as a scratch pad to hold the value when you swap it. Think about how you'd swap 2 real-world objects, if it helps. URL: http://forum.audiogames.net/viewtopic.php?pid=286395#p286395 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. Hi victorious! thanks for the great help so far. so I have another question. why you have to make a temporary variable?ThanksIshan URL: http://forum.audiogames.net/viewtopic.php?pid=286386#p286386 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. I think its more important to understand how selection sort works at a conceptual level. If you have that, then the implementation in source code follows naturally.Suppose you have the following list of numbers: 5, 8, 1, 4, 9, and you want to sort them in ascending order.The idea behind selection sort is to first look at the array, and see which number is the smallest. Once you find this number, swap it with the first number. In this case, 1 is the smallest number, and swappling it with 5 results in the following: 1, 8, 5, 4, 9You can now divide the array into 2 parts: the first element, 1, is the list of sorted items you have so far. The rest of the array is the unsorted list. You next repeat this process.The smallest number in the unsorted list is now 4. Swap it with 8 to get the following: 1, 4, 5, 8, 9The sorted list is now 1 and 4, with the rest of the array yet to be sorted. You should be able to continue repeating the process till the enti re array is sorted. Its called selection sort because in each iteration, you select the smallest number to be swapped. URL: http://forum.audiogames.net/viewtopic.php?pid=286376#p286376 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. hi victorious please download my c sintacs and compile ityeah it worked but it wants 5 numbers for me and it process 4 numbers How the process works can you visualize? https://www.dropbox.com/s/1h59smwb6w0cr … ing.c?dl=0ThanksIshan URL: http://forum.audiogames.net/viewtopic.php?pid=286371#p286371 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. Hi victorious thanks I want your help in selection sort. I will paste the sintacs in few moments is this is the same process of defusing bomb in death on the road game? because both have the sorting. ThanksIshan URL: http://forum.audiogames.net/viewtopic.php?pid=286362#p286362 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. You want to sort data in ascending order. Are you taking an algorithms course, and need to understand sorting algorithms? If not, you should just call your programming language's built-in sorting function and be done with it - its probably implemented using quicksort. If you need to understand sorting algorithms, you need to tell us which algorithm you're having trouble with - selection sort? Insertion sort? Quicksort? Mergesort? URL: http://forum.audiogames.net/viewtopic.php?pid=286356#p286356 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. Hi victorious!I don't know that it is a bubble sort but what I want that when I input the value in the output screen the smallest value should come first. ThanksIshan URL: http://forum.audiogames.net/viewtopic.php?pid=286338#p286338 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. It sounds like you're describing bubble sort, is that right? URL: http://forum.audiogames.net/viewtopic.php?pid=286331#p286331 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. Hi victorious! ok lets assume that we have an array of 5 elements and I want to sort them in acending order. so I have to check every value and compare and then swap it? ThanksIshan URL: http://forum.audiogames.net/viewtopic.php?pid=286209#p286209 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
Re: visualisation a programme.
Re: visualisation a programme. Use a smaller example, say an array of 5 elements and manually work out each step in the sorting algorithm you're trying to understand, say quicksort or mergesort. URL: http://forum.audiogames.net/viewtopic.php?pid=286147#p286147 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
visualisation a programme.
visualisation a programme. Hi friends I have a question in general purpose. How do you visualize the programme. for example if you are making an array of ten numbers and want to sort out them in descending order then how you will visualize the sorting. do you then imagine the table of braille which have classification? or sorting like table? this is the question for c language users but if you are not using c then also you can answer that question. is there any book from which you can understand the visualization concept of sorting?ThanksIshan URL: http://forum.audiogames.net/viewtopic.php?pid=286139#p286139 ___ Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector