Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 159
» Latest member: Tmgonsewski
» Forum threads: 182
» Forum posts: 678

Full Statistics

Online Users
There are currently 10 online users.
» 2 Member(s) | 8 Guest(s)
elelston, mwesson1

Latest Threads
Comparator
Forum: Project 1
Last Post: julian
1 hour ago
» Replies: 4
» Views: 18
Task 8 compare results
Forum: Assignment 1
Last Post: asvivian
1 hour ago
» Replies: 10
» Views: 412
bstNode structure
Forum: Project 1
Last Post: mlestes1
2 hours ago
» Replies: 3
» Views: 59
Mod(s) are away, post pro...
Forum: Miscellany
Last Post: daweil
4 hours ago
» Replies: 0
» Views: 39
exam 1 postponed
Forum: Exam 1
Last Post: bhpauken
09-19-2017, 08:15 PM
» Replies: 6
» Views: 416
CDA Test file
Forum: Project 0
Last Post: jaw653
09-19-2017, 03:18 AM
» Replies: 2
» Views: 68
all pending due dates wil...
Forum: Miscellany
Last Post: JJCollins2
09-18-2017, 06:54 PM
» Replies: 1
» Views: 143
Time Testing
Forum: Project 0
Last Post: cmaugustine
09-18-2017, 06:10 PM
» Replies: 2
» Views: 70
displayBST spacing
Forum: Project 1
Last Post: radagast
09-18-2017, 01:33 AM
» Replies: 1
» Views: 66
How will real numbers be ...
Forum: Project 1
Last Post: ipnanayakkara
09-17-2017, 08:44 PM
» Replies: 0
» Views: 47

 
  Inserted A Repeat Value - BST
Posted by: Arife1 - 09-14-2017, 02:15 PM - Forum: Project 1 - Replies (1)

If we insert a value that is the same as a previous one, our comparator function would return 0 when they are compared. Do we continue to insert it again somewhere else? Would it go to the left or the right of that node?

Print this item

  bst
Posted by: smmitchell2 - 09-13-2017, 03:21 PM - Forum: Project 1 - Replies (4)

Are we allowed a node structure within bst?

Print this item

  String class for testing
Posted by: ianbway - 09-13-2017, 02:35 PM - Forum: Project 0 - Replies (2)

Some of the tests implement a string class. I'm assuming this is similar in structure to the integer and real classes?

Print this item

  Task 5 Hex editor
Posted by: mmrahman - 09-12-2017, 11:29 PM - Forum: Assignment 1 - No Replies

20 20 20 20 31 0A 20 20 20 31 20 31 0A 20 20 31 20 32 20 31 0A 20 31 20 33 20 33 20 31 0A 31 20 34 20 36 20 34 20 31 0A 0A

...the last two 0A are new lines.. will this output fail the test?


Yes that was the problem, this time the test result cleared it. The New task5.scm had 1 new line instead of 2

Print this item

  For those who failed task 4
Posted by: davidmccoy - 09-11-2017, 04:39 PM - Forum: Assignment 1 - Replies (1)

Check out the exercises in Chapter 1.1 to improve your good-enuf? function (they don't provide an answer, just a hint).


Quick test for your improved function:

Code:
echo "(3.600000e-07)" > task4.args
scam -r task4.scm task4.args > results.txt
echo "(3.400000e-07)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(1.600000e-07)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(9.500000e-07)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(4.400000e-07)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(2)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(3)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(4)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(12)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(63246)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(5179)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(1)" > task4.args
scam -r task4.scm task4.args >> results.txt
echo "(0)" > task4.args
scam -r task4.scm task4.args >> results.txt

Code:
0.2904191222
0.2890390868
0.2714417617
0.3148789538
0.2953165071
1.0594630944
1.0958726911
1.1224620483
1.2300755056
2.5123844031
2.0394848923
1.0000000000
0.000000e+00

Print this item

  Task 3 postfix output
Posted by: frostymelonade - 09-11-2017, 04:26 PM - Forum: Assignment 2 - Replies (1)

In the example provided in task 3's description, the infix expression

(2 + 3 * x ^ 5 + a)

is given as

(2 3 x 5 ^ * a + +)

when written in postfix notation. However, the directions also state

"Note that all operators are left associative."

From my understanding of associativity, it seems that 2 + [3*x^5] should be evaluated first, instead of [3*x^5] + a, yielding a correct postfix representation of

(2 3 x 5 ^ * + a +)

Print this item

  Extract CDA
Posted by: Logand064 - 09-11-2017, 04:47 AM - Forum: Project 0 - Replies (2)

When extracting CDA should we be using the getCDA method to ensure the array is in the appropriate order? If so this should take linear time correct?

Print this item

  Resubmission tests
Posted by: jmnissen - 09-10-2017, 10:32 PM - Forum: Project 0 - Replies (2)

Will the tests used to grade our resubmissions be the same as the tests used to grade our original submission?

Thanks

Print this item

  shrink conditional in removeDA and removes in CDA
Posted by: ianbway - 09-10-2017, 07:20 PM - Forum: Project 0 - Replies (5)

I'm curious if the conditional test I am using for the remove methods is correct. Currently I am using 0.25 > size / capacity, and converting them to doubles so that the division is 
more precise. (By typecasting double to the numerator). Is there a better way of computing this? 

I'm adding 9 values, going up to a capacity 16 array. Then I remove all but 1, and only go down to a capacity 8 array. I remove the final value, shrinking to capacity 4. I add a value, staying at capacity 4. Then remove the final value, staying at 4. I'm not shrinking when the ratio is less than .25 and i believe my conditional test is the culprit.

Also in a slightly related note, when using wget on the da-test-0-3.c file I only get the code for part of this test, mainly just the inserts. Do these just act as sample tests and we must fill out the rest?

Print this item

  Assignments #1 postponed
Posted by: lusth - 09-10-2017, 05:01 PM - Forum: Assignment 1 - Replies (2)

The resubmission dates for assignment 1 have been postponed a week to allow more time to work on issues while I'm away in India.

Print this item