
-----------------------------------
MysticVegeta
Thu Nov 24, 2005 5:57 pm

DWITE Turing Discoveries.
-----------------------------------
I have made the following discoveries:

1) You cannot use flexible arrays in Turing because judge is v2.6
2) Cannot use functions with no arguments (has to be with arguments)
3)  Cannot have arrays as an argument

There are lots of more still to come, I will keep on editing this. 

By the ways people, if we cannot use flexible arrays, in problem 2 (game of life) How are we supposed to keep the birth and survival ratios? (DWITE nov 2005) This is stupid, I am dropping DWITE because judge's and my distance takes up compilation time, and everytime it counts 1 problem as 2 submissions for some reason. Can someone suggest to Mr Will to upgrade their Judge's version? Thanks.

Edit: Also should I state that no one using Turing was able to successfully execute Problem 2.

-----------------------------------
Hikaru79
Thu Nov 24, 2005 6:35 pm


-----------------------------------
There's many, many problems with DWITE, and language incompatibilities is one of them :( The DWITE is fun, though, especially given the 'team spirit' ... I just wouldn't base my whole ego on it. Not to the point where I'd boycott it just because it didn't run one of my problems ;)

-----------------------------------
Tony
Thu Nov 24, 2005 7:08 pm

Re: DWITE Turing Discoveries.
-----------------------------------
if we cannot use flexible arrays
you declear a [url=http://machall.com/index.php?strip_id=165]huge honking static array and use an integer counter to keep track of its vertual size :wink: 

You could always pass meaningless arguments to functions, and not use them.

You could declear a global array, and pass an identification to that array to a function. I'd tell you to use pointers, but I have no clue if v2.6 has those.

-----------------------------------
MysticVegeta
Thu Nov 24, 2005 8:30 pm


-----------------------------------
The use of flexible array s in that problem is something like this, Imagine this
var arr : array 1..100 of int
arr(1) := 10
arr(2) := 20

Now if I want it to read only the first 2, i would have to go something like this 
for x : 1..upper(arr)But that would make the loop go to 100 and would give an error at 3. Also there is no catchArraysOutOfBoundsException;

-----------------------------------
Tony
Thu Nov 24, 2005 8:32 pm


-----------------------------------
so use

var arr : array 1..100 of int
var counter : int := 0
arr(1) := 10
counter += 1
arr(2) := 20
counter += 1

for x: 1 .. counter
    put arr(x)
end for
 :wink:

-----------------------------------
Martin
Thu Nov 24, 2005 8:40 pm


-----------------------------------
Look at the DWITE as being fun. Don't worry too much about how you do. Enjoy yourself :)

-----------------------------------
JackTruong
Thu Nov 24, 2005 9:01 pm


-----------------------------------
Think of this as a way of saying; "learn another programming language".

-----------------------------------
MysticVegeta
Fri Nov 25, 2005 10:14 am


-----------------------------------
Yep. I think I am gonna do it, I am going to Java, since I already know IO and vars/arrays/loops in it. Lets see how much I can accomplish in 24 days  :wink: 
I am really starting to hate redeclaring predefined functions  :x 
Thanks for suppoert guys

-----------------------------------
Cervantes
Fri Nov 25, 2005 1:51 pm


-----------------------------------
That's a shame.  I wonder why this problem only surfaced on this competition.  Why not previous competitions?  No one used flexible arrays or functions with no arguments in previous competitions?

I suppose I should do this in a different language then.  Must drag my team though learning Pascal or Java.  *sigh*

Too bad they don't support Ruby.  That will run from DOS.

-----------------------------------
MysticVegeta
Fri Nov 25, 2005 6:56 pm


-----------------------------------
Yeah, Cervantes, what will you do, Java or C++?

-----------------------------------
Cervantes
Fri Nov 25, 2005 8:30 pm


-----------------------------------
Yeah, Cervantes, what will you do, Java or C++?
Well...
Pascal or Java

I hope that clears that up.

-----------------------------------
MihaiG
Fri Nov 25, 2005 9:11 pm


-----------------------------------
if ur going for pascal why not upgrade and go for visual pascal (delphi)... :lol:

-----------------------------------
MysticVegeta
Sat Nov 26, 2005 2:03 am


-----------------------------------
Does that have similar syntax to pascal?

-----------------------------------
bugzpodder
Mon Dec 05, 2005 1:06 am


-----------------------------------
There's many, many problems with DWITE, and language incompatibilities is one of them :( The DWITE is fun, though, especially given the 'team spirit' ... I just wouldn't base my whole ego on it. Not to the point where I'd boycott it just because it didn't run one of my problems ;)

just give the guy (will sentjens) a howl, he'll listen to ya for the most part.

-----------------------------------
md
Mon Dec 05, 2005 2:01 am


-----------------------------------
if ur going for pascal why not upgrade and go for visual pascal (delphi)... :lol:
Delphi is not "visual pascal" it's an entirely different beast. If your going to learn pascal do it right and learn real pascal.

-----------------------------------
MysticVegeta
Mon Dec 05, 2005 6:29 pm


-----------------------------------
:shock: whos the person being desribed here?

-----------------------------------
Andy
Wed Dec 07, 2005 2:23 pm


-----------------------------------
i was refering to el comanfagatron before it was deleted

-----------------------------------
wtd
Thu Dec 08, 2005 12:01 am


-----------------------------------
Are we talking Java 1.5.0, or 1.4.2?  That would seriously influence my choice.

And MysticVegeta: what do you mean by "redeclaring predefined functions"?

-----------------------------------
Cervantes
Thu Dec 08, 2005 1:58 pm


-----------------------------------
The problem with Turing should be fixed, now.  I think they're using a 4.0.x version.

My compsci teacher sent out an email to all the compsci teachers, and apparently a few knew how to run turing from the command-line.

-----------------------------------
MysticVegeta
Thu Dec 08, 2005 3:45 pm


-----------------------------------
ya I got that info from my friend, they are going to be using the latest compiler now  :) 

wtd: I meant for example: String.lower didnt exist in turing 2.6, so we would have to go. 


fcn lower (x : string)
//process on the string
result lowerString
end lower

But not anymore!!!!!  :P  :P

-----------------------------------
[Gandalf]
Thu Dec 08, 2005 4:22 pm


-----------------------------------
So, how did they do it? :)

-----------------------------------
MysticVegeta
Fri Dec 09, 2005 12:31 pm


-----------------------------------
I dont know how they did it but it does say "This program cannot run in DOS" when you open turing.exe with notepad (The unencrypted text) I guess it could compile in Dos.....? I am stilll confused about it  :?

-----------------------------------
we64
Sun Dec 11, 2005 7:22 pm


-----------------------------------
Dwite.ca says they still have problem with the new Turing Compiler for the judge. I wonder if they can fix it on time.

-----------------------------------
McKenzie
Tue Dec 13, 2005 9:46 pm


-----------------------------------
I was bugging Will to upgrade to Java 1.5. He told me it was top priority.  Instead he posted on his site that they are using 1.4.  Oh well, at least it's not as bad as the University of Windsor competition where they assured us they could handle 1.5, only to discover at the last minute that they could only use 1.4.

-----------------------------------
MysticVegeta
Fri Dec 16, 2005 4:43 pm


-----------------------------------
DWITE has a lot of bugs with Turing... my god! I coded the 3 problems in 40 minutes and received 0 score I sent in SAME problems after 2 hours and received 100+ if it had executed properly before I would have had a godly score and I would have had more than 2 hours to get my hands on the rest 2 problems. Instead, I had to waste those 2 hours figuring out the code in Java of those 3 problems. (which I did) But thats not the point!!! I was so ticked off! god...

-----------------------------------
Andy
Fri Dec 16, 2005 9:39 pm


-----------------------------------
DWITE has a lot of bugs with Turing... my god! I coded the 3 problems in 40 minutes and received 0 score I sent in SAME problems after 2 hours and received 100+ if it had executed properly before I would have had a godly score and I would have had more than 2 hours to get my hands on the rest 2 problems. Instead, I had to waste those 2 hours figuring out the code in Java of those 3 problems. (which I did) But thats not the point!!! I was so ticked off! god...

that wouldnt have got you an godly score... you're supposed to be able to do the first three within the first half an hour.. thats how all the highscores are generated.. 

and mckenzie, are u serious?? when was this windsor competition?

-----------------------------------
MysticVegeta
Sat Dec 17, 2005 11:30 am


-----------------------------------
DWITE has a lot of bugs with Turing... my god! I coded the 3 problems in 40 minutes and received 0 score I sent in SAME problems after 2 hours and received 100+ if it had executed properly before I would have had a godly score and I would have had more than 2 hours to get my hands on the rest 2 problems. Instead, I had to waste those 2 hours figuring out the code in Java of those 3 problems. (which I did) But thats not the point!!! I was so ticked off! god...

that wouldnt have got you an godly score... you're supposed to be able to do the first three within the first half an hour.. thats how all the highscores are generated.. 

and mckenzie, are u serious?? when was this windsor competition?

a godly for me is 500+.... not 600+.... for I am yet a newbie  :cry:

-----------------------------------
Mr.S.
Sat Nov 04, 2006 7:22 pm

Re: DWITE Turing Discoveries.
-----------------------------------
Thanks for pointing out some discoveries with Turing.

I have tried to get support from Holt Software regarding the Turing compiler but nobody responds to my e-mails or to my phone calls.  I'm not certain that Holt supports Turing anymore.  Sorry.

I suggest that if Turing is not successful for you during a contest, that you  try another programming environment.

Mr.S.

I have made the following discoveries:

1) You cannot use flexible arrays in Turing because judge is v2.6
2) Cannot use functions with no arguments (has to be with arguments)
3)  Cannot have arrays as an argument

There are lots of more still to come, I will keep on editing this. 

By the ways people, if we cannot use flexible arrays, in problem 2 (game of life) How are we supposed to keep the birth and survival ratios? (DWITE nov 2005) This is stupid, I am dropping DWITE because judge's and my distance takes up compilation time, and everytime it counts 1 problem as 2 submissions for some reason. Can someone suggest to Mr Will to upgrade their Judge's version? Thanks.

Edit: Also should I state that no one using Turing was able to successfully execute Problem 2.

-----------------------------------
Tony
Sun Nov 05, 2006 10:52 pm

Re: DWITE Turing Discoveries.
-----------------------------------
HoltSoft doesn't answer my emails ether.
I'm not certain that Holt supports Turing anymore.
I wonder if it would then before fair use to redistribute Turing? :? I mean we do most of the support here anyways :think:

Anyways, since DWITE now [url=http://compsci.ca/blog/dwite-2006-now-with-ruby/]runs with Ruby - that is definitly something to consider  :wink:

-----------------------------------
cool dude
Mon Nov 06, 2006 3:46 pm


-----------------------------------
another wierd thing about dwite is that at times we submit our program and it says it took too long to run when it clearly runs less than a second. so we submit it it the second time and we get full points for it.

-----------------------------------
Mr.S.
Tue Nov 07, 2006 6:05 am


-----------------------------------
The input data files for the first submission are usually different than the input data files for the second submission.  It is possible that your code got hung up on the first submission but not on the second submission.  The input and output files are posted under Previous Contest Results link at www.dwite.org.  Check out your code against these files.

Mr.S.

another wierd thing about dwite is that at times we submit our program and it says it took too long to run when it clearly runs less than a second. so we submit it it the second time and we get full points for it.

-----------------------------------
Mr.S.
Tue Nov 07, 2006 6:21 am


-----------------------------------
The DWITE judge currently uses Excelsior Jet Personal Edition Java Compiler - jc.exe which can handle Java 2 - 1.4.  It was free from their site a couple of years ago.  Their current compiler which is compatible with Java 2 - 1.5 costs $100 for an educational license.  I have contacted Excelsior, and asked them to send me a free copy.  I am waiting for a reply.

If someone knows of another way for me to handle Java with the DWITE judge, please let me know.

Thanks. Mr.S.


I was bugging Will to upgrade to Java 1.5. He told me it was top priority.  Instead he posted on his site that they are using 1.4.  Oh well, at least it's not as bad as the University of Windsor competition where they assured us they could handle 1.5, only to discover at the last minute that they could only use 1.4.

-----------------------------------
Tony
Tue Nov 07, 2006 9:28 am


-----------------------------------
I would say Sun's javac, but that just seems way too trivial. I must be missing something.


javac Source.java
java Source.class


-----------------------------------
wtd
Tue Nov 07, 2006 12:08 pm


-----------------------------------
It's free Tony, and therefore must be inferior.

-----------------------------------
Tony
Tue Nov 07, 2006 2:04 pm


-----------------------------------
I get your sarcasm, but

Excelsior Jet Personal Edition Java Compiler ... was free from their site a couple of years ago.
Actually it would be for the best to move away from the paid compilers for the reasons [url=http://www.compsci.ca/v2/viewtopic.php?t=13922]discussed here. It would not be fair to participating students if the judge is running a paid propriatory compiler that they can't get a hold of to get accustomed to, or at least test before the submission.

That's why next year DWITE will be running javac :wink:

-----------------------------------
Mr.S.
Tue Nov 07, 2006 9:52 pm


-----------------------------------
Excuse my ignorance with Java.

Prog1_1.java contains the following code:

import java.io.*; // Java I/O
import java.text.DecimalFormat; // Formatting

public class Prog1_1 
{
	public static void main(String args[]) throws IOException 
	{
		BufferedReader input = new BufferedReader( new FileReader("DATA11.txt") );
		PrintWriter output = new PrintWriter ( new FileWriter("OUT11.txt"));
		DecimalFormat twoDigits = new DecimalFormat("0.00");
		for(int i=1; i