Crossing a canyon on a cable bridge

Assignment Help Programming Languages
Reference no: EM13700775

Crossing a Canyon on a Cable Bridge.

Five friends must cross a canyon at night over a cable bridge. The primitive bridge is not very strong and only two people can cross at a time. They have only one lamp to see where they step. Because of this, one of the friends must return the lamp to the starting side for the others to cross.

Furthermore, the friends are not able to cross at the same speed. Thorin is able to cross in one minute, Fili in 3 minutes, Nori in 6 minutes, Bofur in 8 minutes and Balin in 12 minutes. When two friends cross together, they can only cross at the speed of the slower of the two.

They must make the crossing in less than 30 minutes.

Do not forget to count the time to go and return. For example, Fili crossing with Nori takes 6 minutes, and then Filli returning takes another 3 minutes and then Filli crossing with Thorin takes another 3 minutes, etc.

Construct a Prolog program using in-depth research to find a solution to this problem. It must compile with no errors and follow the directions.

 

Reference no: EM13700775

Questions Cloud

Rational class performs operations on fractions : Write a C++ program that, using the rational class performs operations on fractions. Test your class thoroughly.
What compounds result from the reaction : Question- What happens to sodium azide when it is dissolved in water? What compounds result from this reaction?
Design an adt for a two color double stack : Design an adt for a two color double stack adt that consists of two stacks one red and one blue and has its operations color coded versions of the regular stack adt operations.
The oxidation number of chlorine goes from what to what : Question- As the reaction represented above proceeds to the right, the oxidation number of chlorine goes from what to what
Crossing a canyon on a cable bridge : Construct a Prolog program using in-depth research to find a solution to this problem. It must compile with no errors and follow the directions.
Powers of a user specified range of integer numbers : Write a C program to print a table of the powers of a user specified range of integer numbers. The program should also print the sum of the powers of the numbers.
Explain the mixture was gently stirred as the ice melted : The mixture was gently stirred as the ice melted and the lowest temperature reached by the water was recorded. The cup and its contents were weighed again. The purpose of weighing the cup and its contents at the end of the experiment
How it adds flexibility to the operating system : UNIX treats all devices as files. Explain why this is an innovative feature when it was first introduced and how it adds flexibility to the operating system
Determine the molality of the solution : Question- An aqueous solution that is 50.0 percent sulfuric acid (H2SO4) by mass has a density of 1.221 g/ml. Determine the molality of the solution

Reviews

Write a Review

Programming Languages Questions & Answers

  Write a haskell program to calculates a balanced partition

Write a program in Haskell which calculates a balanced partition of N items where each item has a value between 0 and K such that the difference b/w the sum of the values of first partition,

  Create an application to run in the amazon ec2 service

In this project you will create an application to run in the Amazon EC2 service and you will also create a client that can run on local machine and access your application.

  Explain the process to develop a web page locally

Explain the process to develop a Web page locally

  Write functions

These 14 questions covers java class, Array, link list , generic class.

  Programming assignment

If the user wants to read the input from a file, then the output will also go into a different file . If the user wants to read the input interactively, then the output will go to the screen .

  Write a prolog program using swi proglog

Write a Prolog program using swi proglog

  Create a custom application using eclipse

Create a custom Application Using Eclipse Android Development

  Create a application using the mvc architecture

create a application using the MVC architecture. No scripting elements are allowed in JSP pages.

  Develops bespoke solutions for the rubber industry

Develops bespoke solutions for the rubber industry

  Design a program that models the worms behavior

Design a program that models the worm's behavior.

  Writing a class

Build a class for a type called Fraction

  Design a program that assigns seats on an airplane

Write a program that allows an instructor to keep a grade book and also design and implement a program that assigns seats on an airplane.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd