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

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 9
» Latest member: baangelasjunoray6593
» Forum threads: 7
» Forum posts: 13

Full Statistics

Online Users
There are currently 2 online users.
» 1 Member(s) | 1 Guest(s)
ianbway

Latest Threads
-r Option Not Understood
Forum: The Scam Programming Language
Last Post: Benjimin Aaron
5 hours ago
» Replies: 3
» Views: 58
Question 35
Forum: Prerequisite exam
Last Post: lusth
08-16-2017, 05:58 PM
» Replies: 2
» Views: 113
Cheat Sheet on Prereq?
Forum: Prerequisite exam
Last Post: davidmccoy
08-15-2017, 02:56 AM
» Replies: 0
» Views: 47
1.2, Question 4
Forum: Exam 1
Last Post: lusth
08-14-2017, 10:14 PM
» Replies: 1
» Views: 47
Procedures and Processes ...
Forum: Exam 1
Last Post: davidmccoy
08-13-2017, 07:33 PM
» Replies: 0
» Views: 19
The Elements of Programmi...
Forum: Exam 1
Last Post: davidmccoy
08-06-2017, 11:02 PM
» Replies: 0
» Views: 94
Basic Data Structures Sha...
Forum: Prerequisite exam
Last Post: davidmccoy
08-05-2017, 10:14 PM
» Replies: 0
» Views: 188

 
  Cheat Sheet on Prereq?
Posted by: davidmccoy - 08-15-2017, 02:56 AM - Forum: Prerequisite exam - No Replies

Will there be a cheat sheet option for the prereq exam?

Print this item

  1.2, Question 4
Posted by: davidmccoy - 08-13-2017, 08:24 PM - Forum: Exam 1 - Replies (1)

Quote:4. TQ: What kind of process does the following function implement?
   
Code:
(define (f x y z)
       (cond
           ((= x 0) (* y z))
           ((< x 5) (f y z (+ x 7))
           ((< x 10) (+ y (* 2 z) (f (- x 1) y z)))
           (else x)
           )
       )

This is a real piece of work. If I put in any x 10 or greater, I just get back x. If x is less than 10 I do I weird combinations of jumping between an expression that looks tail recursive and an expression that looks non-tail recursive. What's going on here?

*Also, does *TQ* stand for *Tough Question*?

Print this item

  Procedures and Processes 1.2 Practice Question Shared Doc
Posted by: davidmccoy - 08-13-2017, 07:33 PM - Forum: Exam 1 - No Replies

Questions: http://beastie.cs.ua.edu/proglan/1-2.html

Google Docs shared answer sheet (explain answers, comment, and discuss): https://docs.google.com/document/d/1KART...sp=sharing

Master doc with all the material practice question discussions: https://docs.google.com/document/d/1O_qy...sp=sharing

Print this item

  -r Option Not Understood
Posted by: davidmccoy - 08-12-2017, 11:59 PM - Forum: The Scam Programming Language - Replies (3)

I'm running scm files successfully using 

Code:
scam FILENAME.scm

but when I have a Scam file with a function named main, and I use the command
Code:
scan -r FILENAME.scm

I get 
Code:
$ scam -r FILENAME.scm
option -r not understood

Anyone else facing a similar issue, or find a solution?

Print this item

  Question 35
Posted by: davidmccoy - 08-12-2017, 11:34 PM - Forum: Prerequisite exam - Replies (2)

Quote:35. T or F: If f = O(g), then there exists a problem size above which f is runs faster than or the same time as g, even in the best of cases.

Confused by wording. Can anyone restate the question in better terms?

Print this item

  The Elements of Programming 1.1 Practice Question Shared Doc
Posted by: davidmccoy - 08-06-2017, 11:02 PM - Forum: Exam 1 - No Replies

Questions: http://beastie.cs.ua.edu/proglan/1-1.html

Google Docs shared answer sheet (explain answers, comment, and discuss): https://docs.google.com/document/d/1ia6M...sp=sharing

Master doc with all the material practice question discussions: https://docs.google.com/document/d/1O_qy...sp=sharing

Print this item

  Basic Data Structures Shared Answer Doc
Posted by: davidmccoy - 08-05-2017, 10:14 PM - Forum: Prerequisite exam - No Replies

Questions here: http://beastie.cs.ua.edu/concepts/cs/ds/all.html

Google Docs shared answer sheet (explain answers, comment, and discuss): https://docs.google.com/document/d/1mo0B...sp=sharing

Figured I would keep up the format from what the CS201 class did last spring. I'll keep a master doc with all the material practice question discussions here: https://docs.google.com/document/d/1O_qy...sp=sharing

Print this item