Re: Accounting program (was problem solving)

new topic     » goto parent     » topic index » view thread      » older message » newer message

Pete Lomax wrote:
> 
> Al Getz wrote:
> > Two US mint coins total 30 cents, and one of them is not a nickel.
> > What are the two coins?
> > (This will be easy if you have watched the show "Scrubs" recently,
> > where they used this old riddle on the show).
> Two people just wrecked your bike with a sledgehammer and a crowbar and one
> of them wasn't me.

Ha ha, yeah, i had to laugh at that one too he he.  That Janitor cracks
me up.

> 
> > One of my old favorites:
> > "In this one town the barber shaves everyone who does not shave themself.
> > Since the barber does not shave those who shave themself then who 
> > shaves the barber?"
> You forgot to mention that the barber does not have a beard.
> 
> Pete

Pete, that's certainly clever, but logic is logic, and sometimes saying
one thing definitely implies another thing without any doubt whatsoever.
In other words, if the barber does not have a beard then he is one of those
people who does not shave himself and since he shaves all those who do not
shave themself it's still a contradiction because in short form we would
still be saying "the barber shaves himself but he does not shave himself".

I've also heard that the barbers beard caught on fire (hee hee) but
then again that means he doesnt shave himself and so he shaves himself
and the paradox shows up again anyway (with laughts i guess too).
Maybe this is what Don was alluding to in his post which i read already.

A little more (short) interesting read on this paradox can be found here:
http://www.logicalparadoxes.info/barber.html

Looking at things like this definitely helps a persons programming
technique in any language because programming in it's best form is
a perfectly logical endeavor, similar to chess.

I would like to see a program that can deal with things like this
written in Euphoria, but it would take a huge amount of effort and
research im sure.  Automated reasoning deals with this kind of thing,
and in this case would prove that there was a paradox; a set of 
statements that have no solution.  Something to do this written in
Euphoria would be really great!  I think it would have to be able to
interpret the human language however to be totally automatic.
Anyone up to the challenge?



Take care,
Al

E boa sorte com sua programacao Euphoria!


My bumper sticker: "I brake for LED's"

 From "Black Knight":
"I can live with losing the good fight,
 but i can not live without fighting it".
"Well on second thought, maybe not."

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu