SRL Archive - Java Help and Tutorials

3 houses, 3 utilities


marpis

2008-09-22 15:11:01

Im curious, what if you make a program and tell it to connect those 3 houses and 3 utilities? What error does the program tell you? If some1 is patient enough and has any interest in this, please try! :D

For those ignorants who have somehow avoided the question ^^

H H H



F W E


F = Fire, W = Water, E = Electricity
H = House

Connect 1 fire, 1 water and 1 electricity line to every house, so that none of the lines cross each other.
"SPOILER" : It's proved impossible

Yakman

2008-09-22 19:03:24

you can only connect one house to all three utilities, if you try anymore, they cross over.



but you're assuming the houses and utilities are on a flat piece of paper,

what if they are on a sphere? moving it from 2D space into 3D space
then you can connect two houses to all three utilities, one can go all the way around a sphere to get back to beginning, and connect without crossing,

but sphere only works for two.



so then you extend it into yet another dimension, into 4D space, it should work.
but us humans only live in 3D space, so its impossible to imagine a 4D shape that behaves like a sphere.

in other words
you never said we have to stick to 2D space!
it works with 4D space



also, what does this have to do with java programming?

marpis

2008-09-23 16:12:32

From: Yakman

you never said we have to stick to 2D space!
it works with 4D space



also, what does this have to do with java programming?


well, i didn't know where else to put this since i suggested that someone would make a program that tries to draw the solution.

And secondly, there is no 4th dimension. Or if there were, we'll find out after LCH testing.

Yakman

2008-09-23 16:22:20

I'm not talking about real life dimensions that you can see and feel. I mean dimensions you can get by fiddling around with some maths.

you know the number line? center is zero and extends to +infinity and -infinity.
thats 1 dimension isn't it.

you can have a 2 dimensional number line if you bring in imaginary numbers. With them, the number line stops being a number line, and becomes a number plane.

you get two dimension there by fiddling around with maths, and you can use imaginary numbers to solve problems.
in electrical engineering, AC current is best represented by imaginary numbers, even though they are imaginary and AC is defiantly real.