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.
  • R Rajesh R Subramanian

    I've always wondered about Nish and his badly made omelet on his ONLY cooking attempt. Now it all makes perfect sense. :suss:

    Workout progress:
    Current arm size: 14.4in
    Desired arm size: 18in
    Next Target: 15.4in by Dec 2010

    Current training method: HIT

    A Offline
    A Offline
    Abu Mami
    wrote on last edited by
    #33

    Rajesh R Subramanian wrote:

    Nish and his badly made omelet

    You mean "his perfectly made omelet" :)

    R 1 Reply Last reply
    0
    • A Abu Mami

      Hey - finally somebody's trying to work out an algorithm. Not bad. Power Ranger stuff won't go with the young one - although I could just tell him it's special break dance apparel.

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

      Abu Mami wrote:

      I could just tell him it's special break dance apparel

      Or just cut holes in all his new clothes so they look like they've already been used for a day. ;P

      [Forum Guidelines]

      A 1 Reply Last reply
      0
      • C Chris Meech

        In a couple of days from now, The Daily Insider is going to have a link to your post exclaiming the discovery of a new SOCKS protocol that is going to replace HTTP. :cool:

        Chris Meech I am Canadian. [heard in a local bar] In theory there is no difference between theory and practice. In practice there is. [Yogi Berra]

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

        Use SOAP over SOCKS for a cleaner interface.

        [Forum Guidelines]

        1 Reply Last reply
        0
        • A AspDotNetDev

          Abu Mami wrote:

          I could just tell him it's special break dance apparel

          Or just cut holes in all his new clothes so they look like they've already been used for a day. ;P

          [Forum Guidelines]

          A Offline
          A Offline
          Abu Mami
          wrote on last edited by
          #36

          aspdotnetdev wrote:

          already been used for a day

          He only needs about 5 minutes.

          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.

            S Offline
            S Offline
            Steve Mayfield
            wrote on last edited by
            #37

            Write the name of the owner on the inside of all of the items ... markers are cheap :rolleyes:

            Steve _________________ I C(++) therefore I am

            1 Reply Last reply
            0
            • T tolw

              I'm having a hard time deciding what troubles me most: that you know the scent of another man's wife, that you know the scent of some poor woman's husband, or that you know the scent of a dead rancid pole cat... ;)

              Y Offline
              Y Offline
              Yusuf
              wrote on last edited by
              #38

              :thumbsup: :laugh:

              Yusuf May I help you?

              1 Reply Last reply
              0
              • A AspDotNetDev

                Mark the toes of the socks with a certain color of magic marker. Or buy everybody different brands. And buy yourself black/brown dress socks. Have your wife wear girly shirts, you wear button-up shirts, have your older son wear whatever t-shirts, and have your younger son wear nothing but Power Ranger themed clothing. Don't wear any underwear; if you can get the others to agree to that, then you're all set. :)

                [Forum Guidelines]

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

                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 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.

                  Y Offline
                  Y Offline
                  Yusuf
                  wrote on last edited by
                  #40

                  You think that is bad, Ms wife is away on long vacation to her parents house. Right now I have the liberty of doing it *my way*. Once she is back, I will get a pair of those tin foil hats.... :doh:

                  Yusuf May I help you?

                  A 1 Reply Last reply
                  0
                  • Y Yusuf

                    You think that is bad, Ms wife is away on long vacation to her parents house. Right now I have the liberty of doing it *my way*. Once she is back, I will get a pair of those tin foil hats.... :doh:

                    Yusuf May I help you?

                    A Offline
                    A Offline
                    Abu Mami
                    wrote on last edited by
                    #41

                    Yusuf wrote:

                    wife is away on long vacation to her parents house

                    Ahhh - blissful solitary laundry duty. Just put it all in the machine - colors, whites, undies, and all. Wash, dry, and then pile in the drawer.

                    1 Reply Last reply
                    0
                    • A Abu Mami

                      Rajesh R Subramanian wrote:

                      Nish and his badly made omelet

                      You mean "his perfectly made omelet" :)

                      R Offline
                      R Offline
                      Rajesh R Subramanian
                      wrote on last edited by
                      #42

                      In the terms of a man, yes. :)

                      Workout progress:
                      Current arm size: 14.4in
                      Desired arm size: 18in
                      Next Target: 15.4in by Dec 2010

                      Current training method: HIT

                      1 Reply Last reply
                      0
                      • T tolw

                        I'm having a hard time deciding what troubles me most: that you know the scent of another man's wife, that you know the scent of some poor woman's husband, or that you know the scent of a dead rancid pole cat... ;)

                        E Offline
                        E Offline
                        El Corazon
                        wrote on last edited by
                        #43

                        tolw wrote:

                        dead rancid pole cat

                        Anyone who lived in the country knows that one... I'd rule that one out by default.... I'm just an old small-town country hick kid who happened to earn the money for a 'puter in high-school.... I earned it: seeding fields, shoveling ... natural fertilizer, bailing hay, sacking groceries, redrawing architectural drawings of schools, forging senior Id's, selling artwork, and science fair earnings (about $1500 worth over 5 years). :) okay, I'm a little more than a country hick kid. ;P

                        _________________________ John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others." Shhhhh.... I am not really here. I am a figment of your imagination.... I am still in my cave so this must be an illusion....

                        1 Reply Last reply
                        0
                        • D Doctor Nick

                          Ah, so you did it properly then. You made an attempt and messed it up so as to avoid future requests to do it because you would just make it worse. Nicely done :-D

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

                          E Offline
                          E Offline
                          El Corazon
                          wrote on last edited by
                          #44

                          Doctor Nick wrote:

                          Ah, so you did it properly then. You made an attempt and messed it up so as to avoid future requests to do it because you would just make it worse. Nicely done

                          I must be doing something wrong, though rarely asked, when I am asked (using the L word), I help, mess it up, and get questioned why I haven't learned it yet.... Help Need Codez Plz!!!

                          _________________________ John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others." Shhhhh.... I am not really here. I am a figment of your imagination.... I am still in my cave so this must be an illusion....

                          1 Reply Last reply
                          0
                          • A Abu Mami

                            Must be from the new stealth alloys.

                            E Offline
                            E Offline
                            El Corazon
                            wrote on last edited by
                            #45

                            Abu Mami wrote:

                            Must be from the new stealth alloys.

                            nanotubes with active camouflage, the image adapts automatically to the environment from the other side... not really the metal shirts you might think of... but it is powered by heavy metals.... ;P

                            _________________________ John Andrew Holmes "It is well to remember that the entire universe, with one trifling exception, is composed of others." Shhhhh.... I am not really here. I am a figment of your imagination.... I am still in my cave so this must be an illusion....

                            1 Reply Last reply
                            0
                            • 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
                                          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