Programming in your language...
Start Programming - C++


Jul 23
Wednesday

Fox, Sheep, and Cabbage Puzzle

Filed under Programming/Puzzles

In Computer Science algorithms play a big role in this discipline. What is an algorithm? Simplest way to put is, it’s a series of steps in order to solve a problem. Doesn’t necessarily have to be the most efficiently but thats what all computer scientists strive for, efficiency in order to solve problems within a feasible time frame.

Sometimes, for professors to get students understand the basics of come complex algorithms, we are presented with simple games in order to be able to understand why efficiency plays a big role. In other words, it might take us a long time to solve it once, but after that, it might take us a significantly shorter amount of time. (Or do they do this merely to help our ego?)

The Fox, Sheep, and Cabbage Puzzle

I introduce you to this very famous puzzle. Can you solve it? You simply need to cross the fox, sheep, and cabbage across the river but may only take one at a time across!
Continue…

Share and Enjoy: These icons link to social bookmarking sites where readers can share and discover new web pages.
  • bodytext
  • del.icio.us
  • Facebook
  • StumbleUpon
  • E-mail this story to a friend!
  • Live
  • Mixx
  • Print this article!
  • Sphinn
  • Technorati
  • TwitThis
  • Google

Programming/Blogging - 2008-07-22 - comment

The What, Who, How, Where, & Why of Blogging Series Part 1

The What, Who, How, Where, & Why of Blogging Series Part 1 Below I'll introduce you to what a blog really is and later on the second part of this topic, I'll teach you how to create one for free! Why learn about a blog? They are popping everywhere ... continue

Computer/Software - 2008-07-19 - comment

Picasa - Free Photo Editing and Photo Management

Picasa - Free Photo Editing and Photo Management Picasa lets you organize all your photos in one neat application. It allows you to have simple edits, and even show sideshows of your albums. Superb Photo Management System Picasa is great if you have a large amount of ... continue

Byte Talk/Entertainment - 2008-07-18 - 3 comments

xkcd - Imposter

xkcd - Imposter xkcd comes out with the most brilliant comics at times. Here is a favorite. What does everyone think? Is this true? Post it in the comments! continue

Programming/C++ - - comment

Simple Data Structure - The Vector

Simple Data Structure - The Vector The vector is a simple data structure that allows you to store values with the same data type in one container. Introduction Without the use of a data structure, how would you store multiple variables? Let's say we wanted ... continue

Programming/Game Development - 2008-07-17 - comment

Game Career Guide 2008

Game Career Guide 2008 Soon enough, Talk Binary will be launching video game demos anyone can pick up and play, as well as tinker with the source code in order to learn and make your own games! Meanwhile, for those interested ... continue

Gaming, Gaming/PC - - 2 comments

Duke Nukem trailer is simply phenomenal

Duke Nukem trailer is simply phenomenal How long have we been waiting for a new Duke Nukem game? For over a decade that's what! Now guess what they are giving us today? A trailer! But wait...Is this really it? Watch it to find ... continue

Computer, Featured, Gaming, Computer/Linux, Byte Talk/Stuff to try out - 2008-07-08 - 3 comments

Installing Yellow Dog Linux on a PS3 (with video)

Installing Yellow Dog Linux on a PS3 (with video) Hello to everyone! As Diego mentioned in an earlier post, I (Andy) will start posting on Talk Binary and after a small crash course on how to post, here is my very first post for everyone to enjoy. This is a quick and easy video tutorial on how to setup Yellow Dog Linux on your Play Station 3. This tutorial ... continue

C++ - - comment

Simple Data Structure - The Vector

Simple Data Structure - The Vector The vector is a simple data structure that allows you to store values with the same data type in one container. Introduction Without the use of a data structure, how would you store multiple variables? Let's say we wanted to store 5 names into strings. How would this be done? string name1,name2,name3,name4,name5; cin >> name1 >> name2 >> name3 >> name4 >> name5; That looks a bit ugly doesn't it? What if we wanted to store the number of names the user wanted to input? That is where the vector comes in. continue

More filed under: C++