An horizon broading course on Computer science

Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
3 replies · 2K views
athrun200
Messages
275
Reaction score
0

Homework Statement


This is really a horizon broading, even music students and histroy students can take this course.
So I think this HW problem is very simple, but it is too simple that I am afraid I will do it wrongly.


attachment.php?attachmentid=38762&stc=1&d=1315787980.png



Homework Equations


My Dr. said we don't need to know the C++ or any other cmputer language to do this question and he tell us to searh what is the meaning of "trace" in order to do this question.

But I found it difficult to understand on the web(most of them contain computer language)



The Attempt at a Solution



My thought is that, substitute n=4 into the 3 statements, then it's done.
But it contain 10 marks! So I better ask it.
 

Attachments

  • hw1.PNG
    hw1.PNG
    23.6 KB · Views: 574
Physics news on Phys.org
I would think you'd write a list--of each step as you execute it--until you can write "Finished!" Of course, you won't write the letter n each time, you'll write a numeral. :smile:

And if you are chasing marks, you might draw what the two towers look like after each move. :smile: :smile:
 
I have submitted the first attempt to my teacher and I got the following feedbacks.

I would like to see more "steps" before your step (1),
i.e., moving 3 discs from A to B.


However, I can't think of any extra steps before step 1.
Can anyone help me?
 

Attachments

  • SDC15002.jpg
    SDC15002.jpg
    10.5 KB · Views: 508
I think you should find some coins of increasing diameter, mark 3 spots on the table as your towers, and work through this yourself. Don't be afraid to find practical ways to solve/simulate/investigate maths problems, often you'll discover where your "paper calculations" are going wrong, especially when you think YOU CAN'T POSSIBLE LEARN ANYTHING more by looking at practical methods.

After each and every move of a coin, sketch the 3 towers.