- #1

- 426

- 0

What I am looking for is a website with a bunch of good problems to test my skill and get me going. Reading it and making crappy examples from my head doesn't do justice to good hard problems.

thanks.

- C/++/#
- Thread starter bassplayer142
- Start date

- #1

- 426

- 0

What I am looking for is a website with a bunch of good problems to test my skill and get me going. Reading it and making crappy examples from my head doesn't do justice to good hard problems.

thanks.

- #2

Math Is Hard

Staff Emeritus

Science Advisor

Gold Member

- 4,527

- 28

have you worked with classes?

- #3

- 426

- 0

- #4

Math Is Hard

Staff Emeritus

Science Advisor

Gold Member

- 4,527

- 28

okie dokie, that can wait. Have you studied pointers?

- #5

- 426

- 0

Thanks

- #6

- 5,777

- 1,074

- #7

Dr Transport

Science Advisor

Gold Member

- 2,448

- 588

- #8

Math Is Hard

Staff Emeritus

Science Advisor

Gold Member

- 4,527

- 28

Have you heard of the http://www.cs.uwaterloo.ca/~alopez-o/math-faq/mathtext/node32.html" [Broken]?

"A TV host shows you three numbered doors (all three equally likely), one hiding a car and the other two hiding goats. You get to pick a door, winning whatever is behind it. Regardless of the door you choose, the host, who knows where the car is, then opens one of the other two doors to reveal a goat, and invites you to switch your choice if you so wish. Does switching increases your chances of winning the car?"

If you want a little project, you could write a simulation.

"A TV host shows you three numbered doors (all three equally likely), one hiding a car and the other two hiding goats. You get to pick a door, winning whatever is behind it. Regardless of the door you choose, the host, who knows where the car is, then opens one of the other two doors to reveal a goat, and invites you to switch your choice if you so wish. Does switching increases your chances of winning the car?"

If you want a little project, you could write a simulation.

Last edited by a moderator:

- #9

Math Is Hard

Staff Emeritus

Science Advisor

Gold Member

- 4,527

- 28

You could also take a look at this site from my school:

http://www.math.ucla.edu/~wittman/10a.1.07w [Broken]

There are homework assignments with solutions and practice exams there.

(I think this guy really, really likes Lord of the Rings!):tongue2:

http://www.math.ucla.edu/~wittman/10a.1.07w [Broken]

There are homework assignments with solutions and practice exams there.

(I think this guy really, really likes Lord of the Rings!):tongue2:

Last edited by a moderator:

- #10

- 364

- 0

I have no idea what can OP learn from writting the program in c++ for these sorts of a problemS (perhaps nothing except playing with words is far from being conditional probability) but here is the equivalent problem considering a coin tossing I saw recently:Have you heard of the http://www.cs.uwaterloo.ca/~alopez-o/math-faq/mathtext/node32.html" [Broken]?

"A TV host shows you three numbered doors (all three equally likely), one hiding a car and the other two hiding goats. You get to pick a door, winning whatever is behind it. Regardless of the door you choose, the host, who knows where the car is, then opens one of the other two doors to reveal a goat, and invites you to switch your choice if you so wish. Does switching increases your chances of winning the car?"

If you want a little project, you could write a simulation.

_______________________________________________________________________________

One coin is heads on both sides and the other is heads on one side and tails on the other.One coin is selected from the box at random and the face of one side is observed.If the face is heads what is the probability that the other side is also heads?

_______________________________________________________________________________

To OP:Learning the syntax is the last thing good programmer should be concerned with.Most of the things what you can do in Basic,Fortran or Pascal you can do also in c.Depending on type of the problem you are dealing with ,written code may be just longer or shorter[*].IMO,dynamic programming side is the most important thing by far.

EDIT:

Example for [*]:http://math.scu.edu/~dsmolars/ma61/notesrev.html

And if you want some good problems that aren't trivial just say.I can invent them for you

Last edited by a moderator:

- #11

Math Is Hard

Staff Emeritus

Science Advisor

Gold Member

- 4,527

- 28

It's just a little project that could be done without things the OP has not studied yet. I think it would be fun (but hey, that's just me). Variations of the Monty Hall problem are sometimes discussed at PF: https://www.physicsforums.com/showthread.php?t=138952I have no idea what can OP learn from writting the program in c++ for these sorts of a problemS (perhaps nothing except playing with words is far from being conditional probability)

- #12

- 364

- 0

He mentioned Qbasic and I assumed he wasn't a complete newby to programming .I wanted to stress some general principles of programming are more important than realization of code by concrete syntax of a language.That's my experience.IMHO,c++ is great for starters ,but I prefer UCSD Pascal and Turbo Pascal for mathematically loaded problems (it's not just matter of taste).It's just a little project that could be done without things the OP has not studied yet. I think it would be fun (but hey, that's just me).

What r u talking about? I estimate you a smart blonde Hardy.Math Is Hard said:I think it would be fun (but hey, that's just me).

Thank you for the link.Didn't know that was discussed on PF before.

It illustrates how translatations of problems from common language to the ˝language˝ of simple Bayes formula for a conditional probability can be troublesome sometimes.

I gave the the tossing coins variant which in theory of probability represents, most likely, one of the most classical and widely studyed setups ,but still can confuse people.

And when one gives example with goats,doors and cars , people just get completely lost

EDIT: Not a notewothy comment but maybe a concidence :

http://free-zg.htnet.hr/jsribar/en/

This the best book I've seen about c++ ,among many foreign books...

Unfortunately ,I only have the Croatian version.

Last edited:

- #13

Math Is Hard

Staff Emeritus

Science Advisor

Gold Member

- 4,527

- 28

Thank you I'm grateful to have the brilliant ones like you to look up to for advice. Keep on doing what you do, and helping us newbies to C++ out.What r u talking about? I estimate you a smart blonde Hardy.

Last edited:

- Last Post

- Replies
- 4

- Views
- 774

- Last Post

- Replies
- 9

- Views
- 4K

- Last Post

- Replies
- 4

- Views
- 2K

- Last Post

- Replies
- 5

- Views
- 4K

- Replies
- 2

- Views
- 2K

- Replies
- 4

- Views
- 1K

- Replies
- 3

- Views
- 2K

- Replies
- 3

- Views
- 2K

- Replies
- 3

- Views
- 7K

- Replies
- 1

- Views
- 624