Testing problems 3 and 4 in Homework 11.
Here are some notes on
how to proceed here. Also, all of the additional functions
mentioned in the notes have been added to the
hw11.hs file.
Posted:
Wed 23 Apr 2008 15:58:31 EDT
Another typo correction
The hint on page 2 of Homework 10 now has the correct title.
Posted:
Thu 10 Apr 2008 08:43:15 EDT
Changed due date on Homework 10
It is now Wednesday, April 16.
Posted:
Tue 8 Apr 2008 21:17:42 EDT
Typo correction in the answers to the practice quiz.
In problem 2b, line 2 I incorrectly had p:r
when I should have written y:r. The
current version has this corrected.
Posted:
Tue 8 Apr 2008 22:43:56 EDT
Correction on Homework 9
To print out \/, use
"\\/" and to print out
/\ use "/\\".
The problem is that \
is an
escape
character for Haskell.
I also revised hw09.hs slightly to
give a better hint as to what to do for problem 1a.
Posted:
Tue 1 Apr 2008 16:03:44 EDT
MapReduce
Here
is the Wikipedia article on MapReduce.
Posted:
Tue 25 Mar 2008 12:55:36 EDT
Minor correction to Homework 8.
In Problem 2's example, the correct answer is:
[66,-53,-33,72].
Posted:
Tue 25 Mar 2008 12:50:56 EDT
Minor correction on Homework 7.
My example for intersperse should have been:
intersperse ',' ["oak","ash","thorn"]Posted: Tue 18 Mar 2008 16:02:48 EDT
Clarification of the Quiz 3 page
I revised the part about algebraic types
(Thompson Chapter 14) to make things a bit clearer.
Check it out here.
Posted:
Tue 4 Mar 2008 16:12:21 EST
Notes on Homework 6
There are some problems with our default 2002 version of hugs
that are showing up in the homeworks.
(If you are working on a more recent version of Hugs, you
probably are not getting these problems.) Here are some
work arounds.
t0 :: BTree Int t0 = Emptyand use this for input when testing
follow on
and empty tree. Alternatively, you can run your version
of follow on
follow [Lft] (Empty::BTree Int)
shift to:
shift :: Integer -> BTree Integer -> BTree IntegerYou will need to change the type of your test data too.
Haskell problems website
I showed one person the site
99
Haskell Problems, so I'm show the rest of you.
Be warned that a solutions are shown right next to the
problems and that many solutions use parts of the language
we have not talked about yet.
Posted:
Fri 29 Feb 2008 13:16:45 EST
For the truly crazed
Here is a
pointer to a two-fisted programming in Haskell book under
construction.
Also,
here is the book's blog.
Posted:
Tue 26 Feb 2008 14:37:35 EST
Homework 5, problem 3b
Grab a fresh copy of homework 5
write up. I changed the description of Problem 3b
so the result plays well with Problem 3c. To be painfully
explicit, you probably want a line like
distribute [] yss = ysssomewhere in your answer for 3b.
«Mysteries of computer from 65BC are solved»
Quite amazing. Here is
the link.
Posted:
Tue 19 Feb 2008 23:26:55 EST
Score reports
Email score reports just went out.
If you did not receive one, let me know.
If there are problems with missing or incorrect grades,
also let me know.
Posted:
Mon 18 Feb 2008 19:36:10 EST
Class note
I will be
away
from Thursday (Feb. 7) afternoon to Wednesday (Feb. 13) night.
Paul will be taking the class on Tuesday (Feb. 12) which will
be on list recursions. I will be checking email when I can,
which will not be often.
Posted:
Wed 6 Feb 2008 12:25:07 EST
Clarification on late assignments.
We didn't enforce the no late assignments rule very
strictly in the first two weeks.
However, henceforth we shall enforce that
rule strictly.
Posted:
Wed 30 Jan 2008 22:16:38 EST
Clarification on Homework 2.
A point on the circle counts as being inside the circle, at
least for this assignment. So
insideDC (0,0) 1 (1,0) 2should return
True, contrary to what is
says in version 1 of circles.hs.
Oh, in problem 9 we'll take either 0, 1, 2, 3 or 1, 2, 3, 4
for the Int arguments that produce the
co-ordinates for the four corners of a diamond. Just be clear
about what your convention is.
Posted:
Wed 30 Jan 2008 22:12:17 EST
Quiz 1 …
will be on Tuesday February 5.
Posted:
Tue 29 Jan 2008 09:18:44 EST
Homework 2
There are a couple of typos in the given answers to the
examples in circles.hs.
Since they are not hard to find, identify them as
part of the homework.
Posted:
Mon 28 Jan 2008 10:48:42 EST
Re: The due date for Homework 1
It is Friday at noon.
Posted:
Wed 23 Jan 2008 13:27:02 EST
textbooks
The SU Bookstore just received their shipment of the Thompson
text. Copies should be on their shelves by Wednesday
(January 23) afternoon.
Posted:
Tue 22 Jan 2008 14:53:02 EST
Labs are now down in CST 1-214 again
The network problems are supposedly fixed.
Posted:
Sun 20 Jan 2008 09:56:33 EST
Extra labs scheduled
If you missed a lab because of the network problems on
Tuesday or because of account problems or because of
whatever, there will be two extra labs this week:
Change of classroom
Starting on January 17 the class will meet in
SciTech 4-201. To get there, take the SciTech elevator to the
4th floor, and walk toward the construction chaos.
It will be the room with the big glass doors.
Posted: Tue 15 Jan 2008 22:32:18 EST
A taste of Haskell (video tutorial)
Simon Peyton Jones (Microsoft/Cambridge) gave
«A Taste of Haskell» tutorial last Summer at the
O'Reilly Open Source Convention.
Don't worry if you don't want to sit through this thing. Also
don't worry if you find this way over your head (welcome to
the world of technical talks).
Posted:
Thu 3 Jan 2008 19:49:07 EST