Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. need sorting and searching algorithm - help plz, urgent!

need sorting and searching algorithm - help plz, urgent!

Scheduled Pinned Locked Moved The Lounge
algorithmshelp
60 Posts 30 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Abhinav S

    Your design has failed to consider a design 'Evolution point' - the younger son will grow out of Power ranger themed clothing some day. :)

    My signature "sucks" today

    A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #46

    Abhinav S wrote:

    the younger son will grow out of Power ranger themed clothing some day

    After which older son will move out and younger son will take on wardrobe previously adopted by older son. :)

    [Forum Guidelines]

    A 1 Reply Last reply
    0
    • L Luc Pattyn

      Folding? There's an app for that. Ask Elaine, she is bound to know all about it. :)

      Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


      I only read formatted code with indentation, so please use PRE tags for code snippets.


      I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


      N Offline
      N Offline
      Nagy Vilmos
      wrote on last edited by
      #47

      I've heard that people fold at home.


      Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

      L A 2 Replies Last reply
      0
      • N Nagy Vilmos

        I've heard that people fold at home.


        Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

        L Offline
        L Offline
        Luc Pattyn
        wrote on last edited by
        #48

        yep, it is a handicraft everyone could do in his spare time. :)

        Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]


        I only read formatted code with indentation, so please use PRE tags for code snippets.


        I'm not participating in frackin' Q&A, so if you want my opinion, ask away in a real forum (or on my profile page).


        1 Reply Last reply
        0
        • A AspDotNetDev

          Abhinav S wrote:

          the younger son will grow out of Power ranger themed clothing some day

          After which older son will move out and younger son will take on wardrobe previously adopted by older son. :)

          [Forum Guidelines]

          A Offline
          A Offline
          Abhinav S
          wrote on last edited by
          #49

          aspdotnetdev wrote:

          After which older son will move out and younger son will take on wardrobe previously adopted by older son.

          Hmm...you have a point there...hmm. :)

          My signature "sucks" today

          1 Reply Last reply
          0
          • A Abu Mami

            Just can't figure it out. How am I supposed to know which socks are my wife's, my young son's, my daughter's, my older son's. Sheesh! Everytime I take them off the line and throw them in the basket, my bride of 32 years complains that I need to keep them in pairs, sort them by owner, and so on. Now that boys wear those low-cut socks, I don't have a clue what belongs to who. And don't get me started with folding T-shirts, putting in the correct piles, colors, sizes, AAARRRRRGGGGHHHHHHH!!!!!! And, whoever heard of folding underwear. I just throw mine in the drawer. Fold underwear! Give me a break. I've got to move to a new place - something on the fifth floor or higher. Jumping out of a ground floor window just isn't effective.

            K Offline
            K Offline
            KramII
            wrote on last edited by
            #50

            I feel your pain. As a programmer, however, I can't answer your question. Instead, I am obliged to point out that you're trying to solve the wrong problem. Suggestions: 1) Buy lots of pairs of generic black socks that will suit everyone. 2) Buy yourself distinctive socks, and let everyone else fight it out between themselves. 3) Get everyone to stop wearing socks. Bin all existing socks. 4) Clip socks together when you take them off, and leave them clipped in the wash. That's how many blind sock-sorters achieve good results. 5) Buy everyone distinctive socks. Eg. you = purple, younger son = pink etc. 6) Ask wife to demonstrate how to sort socks - either learn from her, or (better still) keep asking for repeat demos. 7) Do each person's laundary separately. 8) Learn to make pie - sounds like much less difficult. 9) Send me pie. It won't solve the sock problem, but I do like cherry pie. Mmm... pie.

            KramII

            1 Reply Last reply
            0
            • D Doctor Nick

              You help with the laundry? :~

              ------------------------------------- Do not do what has already been done. Absolute power corrupts absolutely.. but it ROCKS absolutely, too.

              P Offline
              P Offline
              Peter Mulholland
              wrote on last edited by
              #51

              I help quite regularly now casue the soon-to-be wife goes on strike every now and then. In fairness, she was made redundant last year and is taking any work on offer at the minute. This means that sometimes she's working 3 jobs at once and ends up working late into the evening.

              Pete

              1 Reply Last reply
              0
              • N Nagy Vilmos

                I've heard that people fold at home.


                Panic, Chaos, Destruction. My work here is done. or "Drink. Get drunk. Fall over." - P O'H

                A Offline
                A Offline
                agolddog
                wrote on last edited by
                #52

                When in doubt, raise!

                1 Reply Last reply
                0
                • A Abu Mami

                  Just can't figure it out. How am I supposed to know which socks are my wife's, my young son's, my daughter's, my older son's. Sheesh! Everytime I take them off the line and throw them in the basket, my bride of 32 years complains that I need to keep them in pairs, sort them by owner, and so on. Now that boys wear those low-cut socks, I don't have a clue what belongs to who. And don't get me started with folding T-shirts, putting in the correct piles, colors, sizes, AAARRRRRGGGGHHHHHHH!!!!!! And, whoever heard of folding underwear. I just throw mine in the drawer. Fold underwear! Give me a break. I've got to move to a new place - something on the fifth floor or higher. Jumping out of a ground floor window just isn't effective.

                  J Offline
                  J Offline
                  Joan M
                  wrote on last edited by
                  #53

                  I think that the typical answer in that case (programming question in the lounge) would apply... Put the flamesuit and let the fire take care of all the clothes... No clothes = no problem... :rolleyes:

                  [www.tamelectromecanica.com] Robots, CNC and PLC machines for grinding and polishing.

                  1 Reply Last reply
                  0
                  • A Abu Mami

                    Just can't figure it out. How am I supposed to know which socks are my wife's, my young son's, my daughter's, my older son's. Sheesh! Everytime I take them off the line and throw them in the basket, my bride of 32 years complains that I need to keep them in pairs, sort them by owner, and so on. Now that boys wear those low-cut socks, I don't have a clue what belongs to who. And don't get me started with folding T-shirts, putting in the correct piles, colors, sizes, AAARRRRRGGGGHHHHHHH!!!!!! And, whoever heard of folding underwear. I just throw mine in the drawer. Fold underwear! Give me a break. I've got to move to a new place - something on the fifth floor or higher. Jumping out of a ground floor window just isn't effective.

                    R Offline
                    R Offline
                    RTS WORK
                    wrote on last edited by
                    #54

                    Choose the reply that best fits you. The first one probably does not apply since you have already admitted you help with the laundry :) Sexist Reply: Laundry is Women's work. Why are you sorting or folding anything? Separatist Reply: Everyone Does their own laundry. Even the baby! Post IPO/Bonus Reply: You wear cloths more than once? Throw the dirty laundry out and buy new cloths. The Slacker Reply: Is it really necessary to wash cloths? The Whiped Reply: Do whatever she wants and ask her if she would like her feet rubbed. Dissident Reply: Do shirts really need to be straight and do socks really need to match?

                    1 Reply Last reply
                    0
                    • A Abu Mami

                      Just can't figure it out. How am I supposed to know which socks are my wife's, my young son's, my daughter's, my older son's. Sheesh! Everytime I take them off the line and throw them in the basket, my bride of 32 years complains that I need to keep them in pairs, sort them by owner, and so on. Now that boys wear those low-cut socks, I don't have a clue what belongs to who. And don't get me started with folding T-shirts, putting in the correct piles, colors, sizes, AAARRRRRGGGGHHHHHHH!!!!!! And, whoever heard of folding underwear. I just throw mine in the drawer. Fold underwear! Give me a break. I've got to move to a new place - something on the fifth floor or higher. Jumping out of a ground floor window just isn't effective.

                      G Offline
                      G Offline
                      grgran
                      wrote on last edited by
                      #55

                      If you have been married for 32 years everyone in the house should be old enough to go to the line and get/match their own socks!

                      1 Reply Last reply
                      0
                      • A Abu Mami

                        Just can't figure it out. How am I supposed to know which socks are my wife's, my young son's, my daughter's, my older son's. Sheesh! Everytime I take them off the line and throw them in the basket, my bride of 32 years complains that I need to keep them in pairs, sort them by owner, and so on. Now that boys wear those low-cut socks, I don't have a clue what belongs to who. And don't get me started with folding T-shirts, putting in the correct piles, colors, sizes, AAARRRRRGGGGHHHHHHH!!!!!! And, whoever heard of folding underwear. I just throw mine in the drawer. Fold underwear! Give me a break. I've got to move to a new place - something on the fifth floor or higher. Jumping out of a ground floor window just isn't effective.

                        G Offline
                        G Offline
                        GAMerritt
                        wrote on last edited by
                        #56

                        Thrummular, thrummular thrilp, Hum lipsible, lipsible lilp; Dimthricken mithrummy, Lumgumptulous hummy. Stormgurgle, umbumbdular bilp. (That's what Alan Watts said.)

                        1 Reply Last reply
                        0
                        • A Abu Mami

                          Just can't figure it out. How am I supposed to know which socks are my wife's, my young son's, my daughter's, my older son's. Sheesh! Everytime I take them off the line and throw them in the basket, my bride of 32 years complains that I need to keep them in pairs, sort them by owner, and so on. Now that boys wear those low-cut socks, I don't have a clue what belongs to who. And don't get me started with folding T-shirts, putting in the correct piles, colors, sizes, AAARRRRRGGGGHHHHHHH!!!!!! And, whoever heard of folding underwear. I just throw mine in the drawer. Fold underwear! Give me a break. I've got to move to a new place - something on the fifth floor or higher. Jumping out of a ground floor window just isn't effective.

                          E Offline
                          E Offline
                          ErrolErrol
                          wrote on last edited by
                          #57

                          You are missing the obvious! You must REALLY demonstrate total incompentence. You have to say "I did sort them by owner!". She will fire you and you can get on with screwing up the next job that you don't want to do! Simple! :)

                          1 Reply Last reply
                          0
                          • A Abu Mami

                            Just can't figure it out. How am I supposed to know which socks are my wife's, my young son's, my daughter's, my older son's. Sheesh! Everytime I take them off the line and throw them in the basket, my bride of 32 years complains that I need to keep them in pairs, sort them by owner, and so on. Now that boys wear those low-cut socks, I don't have a clue what belongs to who. And don't get me started with folding T-shirts, putting in the correct piles, colors, sizes, AAARRRRRGGGGHHHHHHH!!!!!! And, whoever heard of folding underwear. I just throw mine in the drawer. Fold underwear! Give me a break. I've got to move to a new place - something on the fifth floor or higher. Jumping out of a ground floor window just isn't effective.

                            M Offline
                            M Offline
                            Mark from Sussex
                            wrote on last edited by
                            #58

                            There are lots of solutions to this problem. If you have lots of money, then don't wash them. Just throw them away and put on a new pair each day. If you have slightly less money then, buy a washing machine for every member of the family and only wash the correct socks in the allocated washing machine for the owner of the socks. If you don't have much money but can spell, then sow the owners name on to their socks. If you have less money, then say who ever washes the socks can wear them. If you have very little money then just have one pair of socks for the whole family and share them. And if you have no money then just dont where any socks as you have no money to buy any. :confused:

                            1 Reply Last reply
                            0
                            • A Abu Mami

                              Just can't figure it out. How am I supposed to know which socks are my wife's, my young son's, my daughter's, my older son's. Sheesh! Everytime I take them off the line and throw them in the basket, my bride of 32 years complains that I need to keep them in pairs, sort them by owner, and so on. Now that boys wear those low-cut socks, I don't have a clue what belongs to who. And don't get me started with folding T-shirts, putting in the correct piles, colors, sizes, AAARRRRRGGGGHHHHHHH!!!!!! And, whoever heard of folding underwear. I just throw mine in the drawer. Fold underwear! Give me a break. I've got to move to a new place - something on the fifth floor or higher. Jumping out of a ground floor window just isn't effective.

                              3 Offline
                              3 Offline
                              3eeqeel
                              wrote on last edited by
                              #59

                              i'll tell you a solution i would use my self, if there are N members in your house, keep N*K bag for use, K is integer and K > 0 if you you want to save money, K = 1 note: there are bags that have mutiple places, to solve the problem of unidentified items do the following: - put a big bag for every member - at the regular time of cleaning - sort out duplications .. etc to identify items: - force family to make items unique, when similiar unique in color, if different, different in size - you can use tags, tag similar items .. etc i hope i helped, even if it's a littel

                              1 Reply Last reply
                              0
                              • A Abu Mami

                                Just can't figure it out. How am I supposed to know which socks are my wife's, my young son's, my daughter's, my older son's. Sheesh! Everytime I take them off the line and throw them in the basket, my bride of 32 years complains that I need to keep them in pairs, sort them by owner, and so on. Now that boys wear those low-cut socks, I don't have a clue what belongs to who. And don't get me started with folding T-shirts, putting in the correct piles, colors, sizes, AAARRRRRGGGGHHHHHHH!!!!!! And, whoever heard of folding underwear. I just throw mine in the drawer. Fold underwear! Give me a break. I've got to move to a new place - something on the fifth floor or higher. Jumping out of a ground floor window just isn't effective.

                                M Offline
                                M Offline
                                Member 3934551
                                wrote on last edited by
                                #60

                                For the future.. Color code them... That's how they do it in my family. When we buy new socks or under ware, my mom sews a small x in a certain position with the according color. My mom has red, I have blue, my dad has green and my bro has yellow ( radioactive material). When we do the laundry, we just sort by color, nice and easy.

                                1 Reply Last reply
                                0
                                Reply
                                • Reply as topic
                                Log in to reply
                                • Oldest to Newest
                                • Newest to Oldest
                                • Most Votes


                                • Login

                                • Don't have an account? Register

                                • Login or register to search.
                                • First post
                                  Last post
                                0
                                • Categories
                                • Recent
                                • Tags
                                • Popular
                                • World
                                • Users
                                • Groups