Change Contents of the Bubble
Welcome to CS1315. Click on the python to add comments.

Looking for the book? They have it at the Engineer's Bookstore at 748 Marietta St NW. Here is there website: http://www.engrbookstore.com/ - Monica

Hotspots: Slides and CodeTA CornerComments?AnnouncementsFAQStatic Webspace
View this PageEdit this Page (locked)Uploads to this PageHistory of this PageHomeRecent ChangesSearchHelp Guide

Comments for Week of Nov 17, 2003



Can someone pls. explain 1.B.a, "a problem that no program can be written to solve." Also, why is there a comma after double or hypotenuse in the map functions. I thought the list are inputs for double or hypotenuse & double or hypotenuse or inputs for map.
Check out the complexity.ppt notes from a week and a half ago. Lauren Biddle

1.B – is there a problem for which you can't write an algorithm? map takes a function and a list of inputs. Hypotenuse takes a list as input, so it's correct as map(hypotenuse,[[3,4],[4,5]]). That's a list containing two sub-lists, [3,4] and [4,5]. Mark Guzdial

How do you get call each induvidual part of the list to use in the function pow if the input is just (sides)? Do u define sides to be a list? How do u do that with functional programming?

(sides) will make slides be the input, like [3,4]. sides[0] would then be 3 and sides[1] would then be 4. (By the way, "you" isn't spelled "u" :-) Mark Guzdial


Any clues to where to find the answer to the winamp problem? I thought all the questions would be from the midterm on.. Are we supposed to find it in the sound slides earlier in the semester.. Thanks.
It's in the slides on transforming media – mediashifts.ppt. Mark Guzdial

Question 1C about problems that can't be solved, are we supposed to pick either (a) or (b) to answer, or should we answer them both? Jeff Baker
Both. Mark Guzdial

can someone give me any input on the pre-quiz's programming problem.. This is my train of thought...

the function hypotenuse should be defined by taking the sqare root of the reduced squared sides or something like this..

map(sqrt,reduce(pow[[a,2],[b,2]]))

the hypotenuse part being everything after map.. Am i somewhat correct?

No, not really. All you have to do is to define the hypotenuse function. def hypotenuse(sides):. Now fill in the rest. The input will be a list like [3,4]. Make the first number the first side, and the second number the second side. You don't need reduce at all, and you only need map in the command area. Mark Guzdial


I understand.. but iam assuming that the sqrt and pow functions will in the hypotenuse definition.. right?
Right. Mark Guzdial


can you give us a hint about catalog websites and databases. I looked over the database power point but it didn't mention anything about catalog websites. Thanks!
A catalog website is a big site, right? Probably with multiple authors? Maybe like a large news site? Does CNN use databases? Why? Why, then, would a catalog website? Mark Guzdial

can u give us a clue to how many lines the code should be... Is the second line after def hypotenuse(sides) going to be something like side=xxx, and then followed by return sqrt(pow(sides))?
I think my answer had 5 lines. pow() takes TWO arguments, not just one. Mark Guzdial

Mine just has one line. But I think it works...

where can we find info on chromakey?

Chapter 3 of the book. It's in designing-debugging.ppt. Mark Guzdial

you're not looking for detailed answers to these questions, right? you want the general idea of each topic?
Exactly. Mark Guzdial

does anyone know where to find info about 1C: a problem where no program can be written, and a problem whose solution would take years to finish?
complexity.ppt. Mark Guzdial

I don't understand. Is CNN a catalog website? What is a catalog website specifically? Can I just explain how databases systems on the web, in general, are useful?
Catalog websites include Amazon.com, ebay.com, sears.com, bestbuy.com, etc. Mark Guzdial

Do we have to attend our usual time slot to take the quiz?.. I am registered for the 1 oclock but I usually attend the 3 oclock class. I Was wondering if I could take the quiz at 3 instead..

If you contact me a priori via email, you can take the other quiz. Mark Guzdial











my program returns this when i try to run it..
>>> map(hypotenuse,[[3,4],[5,6]])
5.0
7.810249675906654
[None, None]

Iam not sure how to get the results on the same line in the brackets.. any insight?.. I think it has to do with my print statement maybe?

I think you're PRINTing instead of RETURNing. Mark Guzdial

IF YOU WANT TO BE A TA, YOU MUST APPLY TODAY!

See Announcements.


in order for pow to accept sides do we need to make it an integer first??
Yup! Mark Guzdial

nevermind, i figure it out, thanks.

Can anyone give any hints in where to start with Homework 6?
Maybe on the page Fall 2003 Homework 6 Questions? Mark Guzdial


I bombed the quiz.

hehe, BOMBS OVER BAGHDAD!

To answer the Soapbox (because I don't really think it's a good place to have a discussion): The final is worth just as much as either midterm. There's a total of 300 points for grabs on the three exams, and that's 35% of your overall grade. Mark Guzdial

The movie assignment was lots of fun. The code was challenging, but far from over-whelming. Keep this assignment around!

The final is approaching and I still don't have grades for a significant part of my average. And the computer science department is laying off TA's....amazing.

I have all my grades except for hw 5 and 6 and quiz 3. Yay for my TA.

ME TOO



Link to this Page