An horizon broading course on Computer science

Click For Summary

Discussion Overview

The discussion revolves around a homework problem related to a computer science course that is accessible to students from various disciplines. Participants are exploring the concept of "trace" in relation to the problem, which involves a sequence of steps to solve a task, likely related to a mathematical or algorithmic challenge.

Discussion Character

  • Homework-related
  • Exploratory
  • Technical explanation

Main Points Raised

  • One participant expresses concern that the homework problem may be too simple, yet fears making mistakes.
  • Another suggests writing a list of steps taken during the execution of the problem, indicating that numerical representation should replace variables like "n".
  • A participant shares feedback received from their teacher, requesting more detailed steps before the initial step of the solution.
  • Another participant proposes using physical objects, like coins, to simulate the problem and suggests sketching the towers after each move to better understand the solution process.

Areas of Agreement / Disagreement

Participants generally agree on the need for a detailed step-by-step approach to the homework problem, but there is no consensus on the best method to achieve this, as different strategies are proposed.

Contextual Notes

Some participants mention difficulty in understanding the term "trace" without prior knowledge of programming languages, indicating a potential limitation in the problem's accessibility.

Who May Find This Useful

Students in computer science or related fields, particularly those struggling with homework assignments that require step-by-step problem-solving approaches.

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: 559
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: 496
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.
 

Similar threads

  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 6 ·
Replies
6
Views
4K
  • · Replies 1 ·
Replies
1
Views
1K
  • · Replies 20 ·
Replies
20
Views
3K
  • · Replies 12 ·
Replies
12
Views
2K
  • · Replies 5 ·
Replies
5
Views
2K
  • · Replies 13 ·
Replies
13
Views
5K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 14 ·
Replies
14
Views
2K
  • · Replies 6 ·
Replies
6
Views
1K