Category Archives: Uncategorized

The Kayaker’s Conundrum: Solutions

Kayakers on the river Adur

Many thanks to everyone who suggested solutions to this conundrum.

It would appear there are two algorithms you can can follow to solve it. Your choice of algorithm depends on whether you live near the start or finish of the paddle. Either way, you only need one bike.


Algorithm 1: If you live near the start:

  1. Drive to the start, drop the two kayaks off. One of you stays with the kayaks.
  2. The other person drives to the finish, leaves the car there, then cycles back to the start and locks up the bike.
  3. You both paddle down the river to the finish.
  4. You both load the kayaks onto the car and drive back to the start.
  5. Unlock the bike, load it onto the car, and drive home.

Algorithm 2: If you live near the finish:

  1. Drive to the finish and lock the bike up.
  2. Drive to the start and unload the kayaks.
  3. You both paddle down the river to the finish.
  4. One of you stays with the kayaks, while the other unlocks the bike, cycles back to the start and loads the bike onto the car.
  5. Drive back to the finish, load the kayaks onto the car, and drive home.

Both algorithms work, whether you live nearer the start or the finish, but choosing the wrong algorithm could result in driving twice the distance you need to. Imagine the distance (by road) between start and finish is 10km, and you live at the start. Algorithm 1 will result in 20km of driving, while algorithm 2 will result in 40km of driving. If you live at the finish, it’s the reverse.

If you live midway between start and finish it doesn’t matter which algorithm you choose. they both involve 30km of driving.

So a little logic (‘selection’ in programming speak) is required before the correct algorithm is chosen:

IF home to start < home to finish

algorithm 1


algorithm 2


Year 6 HTML club updates

After a few weeks of finding I was too busy to blog about how the Y6 HTML lunch time club is going I thought it was about time I added some updates as I’m so pleased with the progress the group are making.

Website_updates (1)
Website_updates (2)

As you should be able to see from the screenshots above, the group are now at the stage where they have got 3 or 4 completed web pages, which all link to one another using a simple navigation bar. Now comes the fun part….styling! We have been playing around with css (Cascading Style Sheets) for the last few weeks and everyone has now successfully linked their style sheet with each of their web pages. This means they are now free to play around and experiment with different elements within that style sheet, allowing them to modify and change the way their pages look. For example, the example at the top shows how a simple line of code in the style sheet: background-image: url(“../images/mario.jpg”); can insert a background image to every page of the website, creating quite an eye-catching effect. If you look closely you can see that the <h1> has also been styled using css, inserting a small logo of Super Mario to the left of the heading. The Biscuits web page in the middle shows how the <ul> and <li> tags have been styled to remove the bullet points and arrange the navigation bar horizontally. The Dinosaur website at the bottom shows how the css has styled the <body> tag so that each page has a coloured background and all the content is centralised.

The examples above might not look like the professional websites that we are all accustomed to seeing when we browse the web but, as I keep reminding the children,,,, etc…are websites which have all been initially created by a large number of people and all require even more people to run them and keep the content up to date. The websites these Y6 children are building may be simple and less ‘funky’ on the surface but, and this is a big but, they have been created entirely by writing HTML code in a text editor; no copying and pasting, no shortcuts just coding! And for that I take my hat off to them.

As usual there was a fair bit of de-bugging that went on in order to get their web pages to this stage e.g. background-colour doesn’t work whereas the US spelling e.g. background-color works perfectly! When I spotted a missing semi-colon at the end of a line of code in a css file, the child responded by saying “it still works anyway even without the semi-colon, so it doesn’t matter” There wasn’t much I could say to that and I didn’t want to rant about how I find it a bit irritating that Chrome (and other browsers I assume) are now intelligent enough to close tags for you as this inevitably leads to laziness and sloppy coding down the line…it is only a lunch time club after all!

More soon.