![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Newbie
Join Date: Feb 2006
Posts: 0
Rep Power: 0
![]() |
Sorting Algorithms
If it's not so much trouble, could someone convert these (or only one) sorting algorithms into turing (programming language) please, I beg you. I have been working my ass off (science fair in 3 days) to write it in turing but have failed miserably.
3.3 Shell sort 3.4 Merge sort 3.5 Heapsort 3.6 Quicksort 3.7 Radix sort Thank you very much. All the algorithms are here: http://en.wikipedia.org/wiki/Sort_algorithm |
|
|
|
|
|
#2 |
|
Resident Grouch
![]() ![]() ![]() ![]() ![]() ![]() Join Date: Jun 2005
Posts: 6,453
Rep Power: 10
![]() |
This isn't a "Buy your schoolwork done here" forum. As a matter of fact, it's contrary to the rules. Certainly, doing another's work for them isn't in their best long-term interests. Generally speaking, one has been given enough time to accomplish one's assignments, unless one has been diddling and stink-fingering around.
__________________
Abstraction doesn't make it impossible to write bad code; it makes it possible to write superior code. Contributor's Corner: Grumpy on C++ Exceptions DaWei on Pointers |
|
|
|
|
|
#3 |
|
Professional Programmer
|
This is what happens when it gets done ONE TIME for some other kid
![]() |
|
|
|
|
|
#4 |
|
Programming Guru
![]() Join Date: Jun 2005
Location: elemental plane
Posts: 1,429
Rep Power: 5
![]() |
Searching google for any of these will get your job done.
__________________
"Employ your time in improving yourself by other men's writings, so that you shall gain easily what others have labored hard for." -- Socrates |
|
|
|
|
|
#5 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 648
Rep Power: 4
![]() |
I have to learn Turing, too. I know it's a bad language, but despite that, nobody will do your work for you. Research on google for pseudo-code.
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
#6 |
|
Hobbyist Programmer
|
What do you mean by bad language?
|
|
|
|
|
|
#7 | |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 648
Rep Power: 4
![]() |
Quote:
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
|
#8 |
|
Hobbyist Programmer
|
I just googled it. I wasn't aware that there was a Turing language. Is it named in relation to Alan Turing or that a coincidence.
|
|
|
|
|
|
#9 |
|
The Oblivious One
Join Date: May 2005
Location: Ontario, Canada
Posts: 648
Rep Power: 4
![]() |
Wow, we're going waaaaay off topic.
http://en.wikipedia.org/wiki/Turing_...mming_language It is based heavily off-of pascal. for example, here is a program that will fill an array with squares:
var numbs : array 1 .. 5 of int
function square(n : int) : int
result n * n
end square
for x : 1 .. 5
numbs(x) := square(x)
put x, "x", x, "=", numbs(x) : 5
end forMaybe it's just my personal disdain...
__________________
Dr. Zoidberg: [ecstatic] I'm going to a movie... with FRIENDS! |
|
|
|
|
|
#10 |
|
Hobbyist Programmer
|
Well I can't implement an alogorithm in Turing if I have never heard of it. Not that I would do this kids homework, but it's the thought that counts I suppose.
|
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|