Sunday, August 2, 2009

Are you Bored?

474 Things To Do When You're Bored


- Wax the ceiling


- Rearrange political campaign signs


- Sharpen your teeth


- Play Houdini with one of your siblings


- Braid your dog's hair


- Clean and polish your belly button


- Water your dog...see if he grows


- Wash a tree


- Knight yourself


- Name your child Edsel


- Scare Stephen King


- Give your cat a mohawk


- Purr


- Mow your carpet


- Play Pat Boone records backwards


- Vacuum your lawn


- Sleep on a bed of nails


- DON'T toss and turn


- Boil ice cream


- Run around in squares


- Think of quadruple entendres


- Speak in acronyms


- Have your pillow X-rayed


- Drink straight shots...of water


- Calmly have a nervous breakdown


- Give your goldfish a perm


- Fly a brick


- Play tag...on West 35th Street


- Exorcise a ghost


- Exercise a ghost


- Be blue


- Be red


- But don't be orange


- Plant a shoe


- Sweat


- Give a Rorschach test to your gerbil


- Turn


- Write a letter to Plato


- Mail it


- Take your sofa for a walk


- Start


- Stop


- Dial 911 and breathe heavily


- Go to a funeral...tell jokes


- Play the piano...with mittens on


- Scheme


- Sit


- Stay


- Water your family room


- Cause a power failure


- Roll over


- Play dead


- Find a witch


- Burn her


- Donate your brother's body to science


- Ask why


- Wriggle


- Regress


- Sleepwalk without sleeping


- Try to join Hell's Angels by mail


- Wonder


- Be a square root


- Ask stupid questions


- Weld your car doors shut


- Spew


- Vacation at Three-Mile Island


- Surf Ohio


- Teach your pet rock to play dead


- Go bowling for small game


- Be a monk...for a day


- Wear a sweatband to your wedding


- Staple


- Run away


- Intimidate a piece of chalk


- Abuse the plumbing


- Bend a florescent light


- Bend a brick


- Annoy total strangers


- Let the best man win


- Believe in Santa Claus


- Throw marshmallows against the wall


- Hold an ice cube as long as possible


- Adopt strange mannerisms


- Blow up a balloon until it pops


- Sing soft and sweet and clear


- Sing loud and sour and gravely


- Open everything


- Balance a pencil on your nose


- Pour milk in your shoes


- Write graffiti under the rug


- Embarrass yourself


- Grind your teeth


- Chew ice


- Count your belly button


- Sit in a row


- Stack crumbs


- Gesture


- Save your toenail clippings


- Make a pass at your blender


- Punt


- Make up words that start with X


- Make oatmeal in the bathtub


- Search for the Lost Chord


- Chew on a sofa cushion


- Sing a duet


- Balance a pillow on your head


- Hold your breath


- Faint


- Stretch


- Flash your mailman


- Teach your TA English


- Learn to speak Farsi


- Swear in Russian


- Use an eraser until it goes away


- Disassemble your car


- Put it together inside out


- Record your walls


- Interview your feet


- Make a list of your favorite fungi


- Sell formaldehyde


- Repeat


- Ad lib


- Fade


- File your teeth - Whine


- Rake your carpet


- Re-elect Richard Nixon


- Critique "Three's Company"


- Listen to a painting


- Play with matches


- Buff your cat


- Race ferrets


- Paint your house...Day-Glow Orange


- Have a formal dinner at White Castle


- Read Homer in the original Greek


- Learn Greek


- Change your mind


- Change it back


- Watch the sun...see if it moves


- Build a pyramid


- Stand on your head


- Stand on someone else's head


- Spit shine your Nikes


- See how long you can stay awake


- See how long you can sleep


- Paint your teeth


- Wear a salad


- Speak with a forked tongue


- Paint stripes on a lake


- Ski Kansas


- Sleep in freefall


- Kill a Joule


- Test thin ice...with a pogo stick


- Apply for a unicorn hunting license


- Do a good job


- Crawl


- Invite the Mansons over for dinner


- Paint your windows


- Watch a watch until it stops


- Flash your goldfish


- Paint


- Flirt with an evergreen


- Smile


- Rotate your garden...daily


- Paint a smile


- Shoot a fire hydrant


- Apologize to it


- Pretend you're blind


- Annoy yourself


- Get mad at yourself


- Stop speaking to yourself


- Be a side effect


- Ride a bicycle...up Mt. McKinley


- Duck


- Redecorate...your garage


- Develop a complex


- Join the Army...be someone simple


- Try harder


- Hit the deck


- Put leg-warmers on your furniture


- Cut the deck


- Crumple


- Translate Shakespeare into English


- Skydive to church


- Cheer up a potato


- Do aerobic exercises...in your head


- Play cards with your swimming pool


- Pinstripe your driveway


- Play Kick the Fire Hydrant


- Harness chipmunk power


- Build a house with ice cubes


- Call London for a cab


- Mug a stop sign


- Change your name...daily


- Go for a walk in your attic


- Challenge your neighbor to a duel


- Build a house out of toothpicks


- Howl


- Wear a lampshade on your head


- Memorize the dictionary


- Stomp grapes in the bathtub


- Find a bug and chase it


- Make yourself a pair of wings


- Be immobile


- Dance 'til you drop


- Check under chairs for chewing gum


- Squish a loaf of bread


- Moo


- Bounce a potato


- Outmaneuver your shadow


- Climb the walls


- Appreciate everything


- Challenge yourself to a duel


- Make napalm


- Tattoo your dresser


- Watch a bowling ball


- Buy some diapers


- Eat everything


- Begin


- Pour milk in the sink


- Make cottage cheese


- Tie-dye your sheets


- Carpet your ceiling


- Hold your earlobes


- Fold your earlobes


- Flap


- Squawk


- Read tea leaves


- Analyze the Koran


- Be Buddha


- Award yourself a Nobel Peace Prize


- Plug in the cat


- Turn on everything


- Drop pebbles down the chimney


- Turn off your neighbor


- Kill a plant


- Buy a 1931 Almanac


- Memorize the weather section


- Think lewd thoughts about yourself


- Blow bubbles


- Send chills down your spine


- Peel grapes


- Make paper from the skins


- Bloat


- Catch them with your radiator


- Get run over by a train of thought


- Make up famous sayings


- Bite your pinkie - Get your dog braces


- Shave a shrub


- Have a proton fight


- Watch a car rust


- Quiver


- Rotate your carpet


- Learn to type...with your toes


- Set up your Christmas tree in April


- Be someone special


- Buy the Brooklyn Bridge


- Mail it to a friend


- Go back to square one


- Factor your social security number


- Take the fifth


- Memorize a series of random numbers


- Read the 1962 Des Moines white pages


- Join the Foreign Legion


- Learn Sanskrit


- Exist...existentially, of course


- Print counterfeit Confederate money


- Kick a cabbage


- Take a picture


- Put it back


- Sandpaper a mushroom


- Play solitaire...for cash


- Abuse your patio furniture


- Run for Pope


- Count to a million...fast


- Make a schematic drawing...of a rock


- Commit seppuku...with a paper knife


- Revert


- Think shallow thoughts


- Starch your shoes


- Polish your Calvin's


- Contemplate a cockroach


- Get a dog to chase your car


- Let him catch it


- Investigate the Czar


- Form a political party


- Climb a sidewalk


- Have a political party


- Get diagonal...with a good friend


- Ride a loaf of bread


- Sharpen a carrot


- Interrogate a gerbil


- Go bow hunting for Toyotas


- Kidnap Cabbage Patch Kids


- Jump back


- Play to lose


- Scalp a street light


- Have your car painted...plaid


- Read a tomato


- Sharpen your sleeping skills


- Watch a game show...take notes


- Put out a fire


- If you can't find a fire, make one


- Interview a cloud


- Play tiddlywinks...go for blood


- Play basketball...in a minefield


- Don't talk to things


- Draw Lewis structures on your ceiling


- Have your cat bronzed


- Have your gerbil gilded


- Write books about writing books


- Create random equations


- Mispell words


- Tell your feet a joke


- Throw a tomato into a fan


- Sing the ABC song backwards


- Pretend you're a dog


- Dial-a-prayer and argue with it


- Grease the doorknobs


- String up a room


- Stack furniture


- Relive fond memories


- Tie your shoelaces together


- Gargle


- Count your teeth with your tongue


- Decay


- Find your half-life


- Design a better toilet seat


- Shred a newspaper


- Have a headache


- Scratch


- Sniff


- Hatch an egg


- Play air guitar


- Act profound


- Spill


- Spell


- Stare


- Truncate


- Slouch


- Develop hearing problems


- Put your feet behind your head


- Tie bows in everything


- Hold your hand


- Watch the minute hand move


- Grow your fingernails


- Pretend you're a telephone


- Ring


- Radiate


- Skip


- Play hopscotch...with real scotch


- Clock the velocity of your REMs


- Put your shoes on the opposite feet


- Cross your toes


- Roll your tongue


- Crystallize


- Baby oil the floor


- Hide


- Attack innocent bunnies


- Declare war


- Destroy a tree


- Hide the scrabble bag


- Seduce your stick shift


- Wink


- Memorize the periodic table


- Mummify


- Pretend you're a roadie


- Buy a Ginsu knife


- Collect electrons


- Correct typos that aren't there


- Polish your neck...use Pledge


- Recopy the Bible substituting your name for God


- Loosen the lug nuts on your dad's new car


- Drop your cat off the roof to see if it lands on all four feet


- Count the bags under Walter Mondale's eyes


- Unscrew all the lightbulbs and rearrange the furniture


- Found the Jim Jones School of Bartending


- Listen for non-satanic messages (i.e. "Drink milk")


- Dress like Motley Crue...surprise your grandmother


- Dial-a-Prayer and tell them they're wrong


- Go into a bar and ask for a Molotov Cocktail


- Learn everything there is to know about the Holy Roman Empire


- Make a drive-in window at your local bank where there wasn't one before


- Walk on water...but don't get caught


- Confess to a crime...that didn't happen


- Be in the wrong place at the right time


- Plot the overthrow of your local School Board


- Request covert assistance from the CIA


- Discover the source of the Mississippi


- Search for buried treasure...in Nebraska


- Hot wax the bottom of your brother's dress shoes


- Preach the philosophy of Marx...Groucho, that is


- Drink as much prune juice as you can


- Write a book about your previous life


- Serve ping-pong balls...as hors d'oeuvres


- Jump up and down...on your alarm clock


- Make a quilt out of used cocktail napkins


- Sterilize your stereo...with Jack Daniels


- Carve you and your girlfriend's initials...in a marshmallow


- Drive the speed limit...in your garage


- Sing the national anthem...during your calculus final


- Wear a three-piece suit...in a sauna


- Pay off the national debt...with a bad check


- Go to a cemetary and verbally abuse dead people


- Give yourself a hernia...for Christmas


- Defend your neighborhood from roving Mongol hordes


- Recite romantic poetry...to your toaster


- See if you really can build a nuclear device in your own basement


- Go to McDonald's and pretend you can't speak English


- Write to your congressmen, senators, President, etc. to tell them what a good


- job they're doing...On April 1st


- Find the heat capacity of your chemistry professor


- Take apart all your major kitchen appliances...mix and match them


- Turn your TV picture tube upside down


- Phone in a death threat on President Kennedy


- Put lighted EXIT signs on all your closets


- Carry a tune...drop it, see if it breaks


- Be planar...but don't tell your parents


- Play hockey with your little cousin...as the puck


- Make a deal with the devil...but keep your fingers crossed


- Put instant concrete in your big brother's waterbed


- Give a lecture on the historical significance of cream cheese


- Debate politics with a fern


- See how small you can scrunch your face - Sell firewood door to door...in Atlantis


- Found the TLO (Toledo Liberation Organization)


- Play nuclear chicken with a small third world nation


- Raise professional certified racing turnips


- Give your grandmother a raise and another day of paid vacation


- Lead an aerobics class...for patients of the I.C.U.


- Go to a drive-in movie in a tank


- Go to a non-drive-in movie in a tank and drive in anyway


- Send President Reagan an alarm clock...wind it up first


- Found a cockroach stable and stud ranch


- Send your goldfish to obedience school


- Free the oppressed toasters of America


- Weave a tablecloth out of copper tubing


- Give your cat a suntan...in the microwave


- Park your car...with a friend


- Park your car...with a group of friends


- Frame your first statement of bankruptcy


- Place it on the wall of your office


- Solve the population problem (x^2 + y^2 = population...solve for x)


- Contribute to the population problem


- Wear a T-shirt that says "I'll walk on you to see The Who" and a peace sign


- Practice the Aztec method of heart removal on your professor


- Find out who made the super glue commercials and give them your Ginsu knife


- Get Ronco and K-tel to merge...they sell the same stuff anyway


- Sneak into a nuclear physics lab and stay the night


- Play with anything that looks interesting


- Drop piston engines on two people and see who squishes first


- See if your goldfish can live in Coors rather than water


- Try to ignite water...the Mississippi might work


- Draw Venn diagrams...screw them up


- State fallacies as fact (like, "peanuts grow on bushes")


- Visit the Architecture building...loudly criticize its design


- Make a schematic drawing...of a rock


- Wallpaper your laundry room...with pages from books you don't like


- See if diamonds really do cut glass...on everything in your neighbor's house


- Tenderize your tongue...chew on it for a while


- See how long you can stare at a fluorescent light...try green


- Bronze your sister's turtle


- See how long it takes for her to notice


- See what she does when she notices


- Bronze your sister- If you lose, stop watering it and try again.


- Increase your territorial holdings by force


- Find out how many ways there really are to skin a cat


- Boldly go where no man has gone before


- Be a threat to the American way of life


- Do research into the cause of World War III


- Be a threat to the Northwestern Tibetan way of life


- Re-establish the Roman Empire...in Pittsburgh

Are you Bored?
most of that stuff i cant do b/c im at work
Reply:what a scream! If anyone could scare Stephen King that would be a real achievement! You are very creative. Love it! Report It

Reply:I would rather play a round of Scrabble at Scrabulous!
Reply:Interesting, but you could always play the pingu bashing game... my whole office is hooked.





http://www.flumps.org/funny/bloodypingu/





P.S. salmon
Reply:i guess you are unemployed
Reply:I like the, "Pay off the national debt...with a bad check" and "Phone in a death threat on President Kennedy
Reply:lol... very original good stuff.
Reply:I'd like a Molotov cocktail please barkeep.
Reply:OK, didn't read all of these because too long...but...





puuuuuuuuuuurrrrrrrrrrrrrrrrrrrrrrrrrr...





That should answer your question. ;-)

send flowers

Roving nerve damage?

I did some strenous stretching about 2 mos. ago (sitting, legs apart, trying to touch forehead to ground). Guess it was too much, b/c ever since I have had random tingling and numbness- starting- very briefly- tingling around my ankles, then numbness in my fingertips (about 1 mo, now gone), and a tingling when bowing my head (still). Now my left leg is numb- thigh, calf- feel cold, although the skin is not numb, exactly.


Being lower-income (w/o insurance) I was seen at a clinic (before leg went numb). MD said to try B12 supplement, and to take it easy with the stretching. Will this heal itself, or, in other words, is it okay to ignore?

Roving nerve damage?
Nerves take unusually long to heal. Take alive as well and don’t stretch too much. You should be fine but it will take a while to get back to normal.


Why are there so many possible combinations of maternal and paternal traits in each generation of offspring?

a. there are the same number of chromosomes in each cell


b. because of the random grabbing of chromosomes by the microtubles during metaphase !


c. because of the biological components that chromosomes are made of


d. because of the high frequency of viral invasion

Why are there so many possible combinations of maternal and paternal traits in each generation of offspring?
B
Reply:B
Reply:i think B also
Reply:b


Statistics, probability, Rolling a pair of dice?

My teacher is nice, but when it comes to explaining the problems it is tough to understand him.


I am having a test soon and I need to understand how to do this type of problems. I kinda need step by step help. Some of the people out there might understand math well, but it is really difficult for me. I have been standing over this problem for a while now, and I keep getting wrong answers. If I get the right answer, I basically played with the numbers, but I still don't understand how to do it. (which wont help me on the test)


please


# 1)


Roll a pair of dice,


let A represent the event that the sum is an even number,


B represent the event that the sum is greater than 7,


C represent the event that at least one die showed 5.


Find


a) P(A)


b) P( A or B),


c) P(A and C)


d)


e) P(A│C)


f)P(C│A)





# 2)


IV. If a person is selected at random, find the probability that his or her birthday is


a) October 8


b) in October


c) on a Wednesday


d) on a day of the week that starts with T

Statistics, probability, Rolling a pair of dice?
Probability is based on the following





Possible Outcomes


---------------------------


Total Outcomes





It is written like a fraction





So for P (A) The probability of getting an even number would be





There are 19 different total outcomes, and 10 of them are even so..





10


___


19


Find kth smallest element of n numbers. Assume k <=(n/2)?

Consider the problem of finding the k-th smallest element of a set of n numbers.


Assume that k %26lt;= (n/2).


However, instead of being able to look at the whole date set at once, you are given the numbers one by one in random order. To be precise, the input is a randomly ordered sequence of n numbers x1, x2,..,xn, given one at a time, inserted into a fixed memory cell C. That is, on the i-th input step the contents of xi are placed into C (and the previous contents of C are erased). You can perform any computation between two input steps (including moving the contents of C to a temporary storage location).


a. Suppose that we are interested only in minimizing the amount of storage used by the algorithm.


1. Prove a lower bound that shows any algorithm that finds the k-th smallest number requires k storage cells in addition to C.


2. Give an algorithm that achieves the lower bound you just proved. What is the running time?


b. Now, suppose we want to have a fast running time but still use very little space (though not necessarily the absolute minimum amount of space). Design an O(n) expected time algorithm to find the k-th smallest element using only O(k) storage. You may assume that the value of k is known ahead of time but the value of n is not known until the last element is seen.

Find kth smallest element of n numbers. Assume k %26lt;=(n/2)?
Crazy.. that's a nice question. is that saying that the kth element will appear in the first half of the list of numbers??. if so then only read to the halfway point.





I'm not sure which bit you want answered. But the last part is the thing that interest me, although i'm not sure that i have understood the question well. anyway...


if I was to find the Kth smallest element. I would keep a sorted vector or K elements. as the elements come in they would be compared to the last element of the vector and tested to see if it was smaller. the the last element is removed, bubble sort the new element(no need for anything fancy, Note if you use quick sort the algorithm may explode to O(k^2)). Then after the input has finished read the last element in the vector and bingo there is you kth element.
Reply:A. If you don't assume that you know the value of k, then the problem cannot be solved in any space less than capturing the entire list of n numbers.


B. Are duplicates allowed? How are they considered in terms of defining 'k'? for instance, if you want the 10th element, and the first ordered 6 values are 1,2,2,3,3,3 do they count as 6 or as 3 elements?


C. The maximum efficient solution is to store all N values, bubble sort them (requires 1 additional memory location) and then cycle through the sorted list using temporary counters. Plus you need to store 'k' somewhere.


D. You don't need, necessarily 'k' storage cells, if all you need is the kth value. Unless, of course, 'k' is very small (%26lt; 6). Why? Here's the algorithm:





0. Store 'k' and the first value.


1. capture the next value.


2. increment the count of number of values by 1


3. compare the next value to the stored value.


4. compare the count to k.


5. IF count %26lt; k, then store the greater of stored value and current value into stored value.


6. IF count %26gt; k, then store the lesser of stored value and current value into stored value.


7. Repeat, beginning at step 1 until there are no more values.





Yes? No?

quince

Statistics-mean-standard deviation?

A huge vat is full of marbles all mixed together, with a number written on it. 20% of the marbles have a "0", 30% have a "1", 10% have a "15", 10% have a "30", 10% have a "80" , and the rest have a"100". Let Y be a number written on a randomly-selected marble (round all answers to four decimal places)





[a]The mean of the random variable Y is:?





[b]The Standard Dev. of Y is:?





[c]Take 20 marbles. What is the probability that the number of "ones" is at most 5:?





[d]Take 100 Marbles. What is the prob. that the number of "ones" is at most 25:?





[e]The prob of the average of numbers on n=25 is less than 35 is:?


For a sample of n=81 it would be:?


For a sample of n=400 it would be:?


For a sample of n=1600 it would be:?


For a sample of n=6400 it would be:?

Statistics-mean-standard deviation?
a) mean is just a weighted average:


m = .20(0) + .30(1) + .1(15) + .1(30) + .1(80) +.2(100) = 32.8





b) standard deviation:


SD = sqrt[.20((-32.8)^2) + .30((-31.8)^2) + .10((-17.8)^2) + .10((-2.8)^2) + .10(47.2^2) +.20(67.2^2)] = 39.0629





c) Since it's a "huge vat", we'll assume that taking out 20 marbles doesn't affect the proportions of the different kinds of marbles in the vat. The probability of exactly





zero "ones" = (1-.3)^20 = 0.000797923


one "one" = 20(.3*.7^19) = 0.006839337


two "ones" = (20*19)(.3^2*.7^18)/2 = 0.027845873


three "ones" = (20*19*18)(.3^3*.7^17)/6 = 0.071603672


four "ones" = ... = 0.130420974


five "ones" = ... = 0.178863051





Adding these up gives 0.416370829 as the probability of getting at most five "ones".





d) Exact same logic as before gives probability of 0.163130104 for getting at most twenty-five "ones".





e) sorry, no time to work on this last one -- you'll have to find someone else.
Reply:....0 | 0.20 |.. 0.0 | 215.168


....1 | 0.30 |.. 0.3 | 303.372


..15 | 0.10 |.. 1.5 |.. 31.684


..30 | 0.10 |.. 3.0 |.... 0.784


..80 | 0.10 |.. 8.0 | 222.784


100 | 0.20 | 20.0 | 903.168


[a] μ = 32.8


[b] σ ≈ 40.95070


[c] 1 - 0.7^15 ≈ 0.9952524


[d] 1 - 0.7^75 ≈ 1.0


[e] Z = 5(35 - 32.8) / 40.95070 = 0.2686157


P(m %26lt; 35) = 0.605889


etc.
Reply:let Y=number written


y ---- p(y)


0-----0.20


1-----0.30


15----0.10


30----0.10


80----0.10


100--0.20


mean= E(y) = sum y(i).p(y(i) for each i


0(0.20)+1(0.30)+15(0.10)+30(0.10)+80(0...


b) find variance of y


[y-E(y)]^2


[0-32.8]^2=1075.84


[1-32.8]^2=1011.24


..


..


[100-32.8]^2=4515.84


add all (y-E(y))^2 and take its square root.


It's your standard deviation.


c)prob (y=1)=0.30


Use a Binomial distribution with n=20 p=0.3


x=0,1,2,3,4,5 and sum these values


Use the source if you don't have a Binomial table.=0.4164


d)n=100 p=0.3 x=0 through 25.


=0.1631


e) The question is not clear. What is your definition of n? I have defined n as my number of marbles. The probability of a marble showing less than 35 is 0.70 from the table.


average of numbers is 32.8 .


p(av %26lt; 35)=p(z %26lt; (35-32.8)/sd/sqrt(25)) -- (1)assuming a normal distribution)


sd can be computed from the table.


for a sample of n=81


replace 25 by 81 in (1)


and so on. Use the normal table to evaluate these probabilities.


What's running time algorithm?...please help...any idea...thanks.?

Consider the problem of finding the k-th smallest element of a set of n numbers.


Assume that k %26lt;= (n/2).


However, instead of being able to look at the whole date set at once, you are given the numbers one by one in random order. To be precise, the input is a randomly ordered sequence of n numbers x1, x2,..,xn, given one at a time, inserted into a fixed memory cell C. That is, on the i-th input step the contents of xi are placed into C (and the previous contents of C are erased). You can perform any computation between two input steps (including moving the contents of C to a temporary storage location).


a. Suppose that we are interested only in minimizing the amount of storage used by the algorithm.


1. Prove a lower bound that shows any algorithm that finds the k-th smallest number requires k storage cells in addition to C.


2. Give an algorithm that achieves the lower bound you just proved. What is the running time?


b. Now, suppose we want to have a fast running time but still use very little space (though not necessarily the absolute minimum amount of space). Design an O(n) expected time algorithm to find the k-th smallest element using only O(k) storage. You may assume that the value of k is known ahead of time but the value of n is not known until the last element is seen.

What's running time algorithm?...please help...any idea...thanks.?
Ok...this one is a little tricky..but it is basically a variation of a sorting algorthim..to a degree.





bascially the smallest storage we could have is O(k)..think about it...we need to know how to place the values we are getting...and if we get a new value that fits into our storage better, we can boot off the larger of the elements in storage.


Know the question of what the time function is going to be is kind of tricky. specially since we are getting groups of random size as input..this will great effect our time because we are to compare this group with the elements in our storage. Off the top of my head I can't think of a way that you can get O(n) time with this storage...The best you could get..if even possible would be O(nlogn).
Reply:Better you can check this site to get help in Algorithm


http://forums.devshed.com/software-desig...