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. Looking for an algorithm

Looking for an algorithm

Scheduled Pinned Locked Moved The Lounge
algorithmsjsonhelptutorialquestion
34 Posts 17 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.
  • J Jerry Hammond

    I didn't vote it a 1--or any other number for that matter--but the post does strike me as a possible candidate for a homework question.

    “Profanity is the attempt of a lazy and feeble mind to express itself forcefully”

    B Offline
    B Offline
    brianwelsch
    wrote on last edited by
    #10

    Check his profile. Not likely a homework question. BW


    If you're not part of the solution, you're part of the precipitate.
    -- Steven Wright

    E 1 Reply Last reply
    0
    • J Jerry Hammond

      I didn't vote it a 1--or any other number for that matter--but the post does strike me as a possible candidate for a homework question.

      “Profanity is the attempt of a lazy and feeble mind to express itself forcefully”

      N Offline
      N Offline
      Nick Jacobs
      wrote on last edited by
      #11

      Jerry Hammond wrote:

      but the post does strike me as a possible candidate for a homework question.

      While I'm all for not helping out with homework questions, it's very hard to determine what is a homework question and what is not. In this case, it is to assist in scheduling Irish Dancers for a dance competition. I was thrown into it last minute and I have to have everything done by the 21st of May. Our guy that usually schedules this thing resigned literally 1 month ago and a bunch of us are trying to figure out what to do, on top of our other duties we have to handle. It's been 20 years since I've dealt with set theory. All of my jobs since then haven't had to worry about them. (I know I've got LOTS of math classes too, haven't used anything higher than Trig classes in 20 years either. Somebody brings up calculus and I'd have to go rethink it out again). In case anybody out there is wondering, the competition is called a Feis (pronounced fesh). There are several around the country(ies) most weekends, and many more around the world. My area has produced a few world champions (Think Michael Flatly of Riverdance Fame). www.akronfeis.com is our particular web site. It's more informational for the registered entries then what a feis actually is. Nick This are my own opinions. You know the rest.....

      J 1 Reply Last reply
      0
      • N Nick Jacobs

        Jerry Hammond wrote:

        but the post does strike me as a possible candidate for a homework question.

        While I'm all for not helping out with homework questions, it's very hard to determine what is a homework question and what is not. In this case, it is to assist in scheduling Irish Dancers for a dance competition. I was thrown into it last minute and I have to have everything done by the 21st of May. Our guy that usually schedules this thing resigned literally 1 month ago and a bunch of us are trying to figure out what to do, on top of our other duties we have to handle. It's been 20 years since I've dealt with set theory. All of my jobs since then haven't had to worry about them. (I know I've got LOTS of math classes too, haven't used anything higher than Trig classes in 20 years either. Somebody brings up calculus and I'd have to go rethink it out again). In case anybody out there is wondering, the competition is called a Feis (pronounced fesh). There are several around the country(ies) most weekends, and many more around the world. My area has produced a few world champions (Think Michael Flatly of Riverdance Fame). www.akronfeis.com is our particular web site. It's more informational for the registered entries then what a feis actually is. Nick This are my own opinions. You know the rest.....

        J Offline
        J Offline
        Jerry Hammond
        wrote on last edited by
        #12

        What about his profile says he is unable to attend Uni or other learning institution?

        “Profanity is the attempt of a lazy and feeble mind to express itself forcefully”

        G B 2 Replies Last reply
        0
        • J Jerry Hammond

          What about his profile says he is unable to attend Uni or other learning institution?

          “Profanity is the attempt of a lazy and feeble mind to express itself forcefully”

          G Offline
          G Offline
          Gary R Wheeler
          wrote on last edited by
          #13

          Nick's profile is here[^]. If you read it, you find out he's been programming a long time and well beyond the need to post homework questions. Homework questions are typically posted with a statement of a problem and a demand, not a politely phrased request but a demand, for source code, and BTW they must have it by tomorrow or they'll flunk. Nick's original post was nothing like that. Cut him some slack.


          Software Zen: delete this;

          Fold With Us![^]

          J 1 Reply Last reply
          0
          • M Marc Clifton

            It's sad your post got voted down. It's not a programming question, it's help on finding an algorithm which is different than "how do I make a button". Sigh. Get a life, all you 1 voters. Marc Pensieve Some people believe what the bible says. Literally. At least [with Wikipedia] you have the chance to correct the wiki -- Jörgen Sigvardsson

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #14

            Marc, I Agree your view. How did the Renaissance Spring Faire go Saturday - hope it wasn't spoilt by inclement weather.

            1 Reply Last reply
            0
            • N Nick Jacobs

              I've been "selected" to come up with a schedule of dance competitions. Not something I was expecting... Has anybody seen an algorithm that will allow to do to different weighted combinations into buckets? Here's an example: I've got 3 buckets (Stages actually) Competition 1: 3 Entries Competition 2: 4 Entries Competition 3: 2 Entries Competition 4: 1 Entry Competition 5: 2 Entries So the buckets would end up looking like this: B1: C1+C4 = 4 Entries B2: C2 = 4 Entries B3: C3+C5 = 4 Entries The idea is that each stage gets the same number of competitors so they all finish at the same time. Thanks for any help. Nick This are my own opinions. You know the rest..... -- modified at 22:46 Saturday 13th May, 2006

              D Offline
              D Offline
              David Cunningham
              wrote on last edited by
              #15

              Might this do it? http://www.efeis.com/Default.aspx?content=CompMgr[^] David

              N 1 Reply Last reply
              0
              • D David Cunningham

                Might this do it? http://www.efeis.com/Default.aspx?content=CompMgr[^] David

                N Offline
                N Offline
                Nick Jacobs
                wrote on last edited by
                #16

                David Cunningham wrote:

                Might this do it? http://www.efeis.com/Default.aspx?content=CompMgr\[^\] David

                David, I had to laugh, in a good way, Actually, I talk with Andrew a fair amount, but his scheduling is self admitted as not being that good. I've been pushing him to help out by pushing the database for his Competition Manager over to SQL but it's still in Access. What I'd like to do is to figure out a good system that is compatible with his database format and continue to use it in the future.. Thanks for pointing it out though! Nick This are my own opinions. You know the rest.....

                D 1 Reply Last reply
                0
                • N Nick Jacobs

                  David Cunningham wrote:

                  Might this do it? http://www.efeis.com/Default.aspx?content=CompMgr\[^\] David

                  David, I had to laugh, in a good way, Actually, I talk with Andrew a fair amount, but his scheduling is self admitted as not being that good. I've been pushing him to help out by pushing the database for his Competition Manager over to SQL but it's still in Access. What I'd like to do is to figure out a good system that is compatible with his database format and continue to use it in the future.. Thanks for pointing it out though! Nick This are my own opinions. You know the rest.....

                  D Offline
                  D Offline
                  David Cunningham
                  wrote on last edited by
                  #17

                  Lol. I should have known. :D David

                  A 1 Reply Last reply
                  0
                  • B brianwelsch

                    Check his profile. Not likely a homework question. BW


                    If you're not part of the solution, you're part of the precipitate.
                    -- Steven Wright

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

                    brianwelsch wrote:

                    Check his profile. Not likely a homework question.

                    You aren't honestly expecting everyone not to jump to conclusions and vote rashly? :omg: _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                    B J 2 Replies Last reply
                    0
                    • E El Corazon

                      brianwelsch wrote:

                      Check his profile. Not likely a homework question.

                      You aren't honestly expecting everyone not to jump to conclusions and vote rashly? :omg: _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                      B Offline
                      B Offline
                      brianwelsch
                      wrote on last edited by
                      #19

                      more hoping. :) BW


                      If you're not part of the solution, you're part of the precipitate.
                      -- Steven Wright

                      E 1 Reply Last reply
                      0
                      • J Jerry Hammond

                        What about his profile says he is unable to attend Uni or other learning institution?

                        “Profanity is the attempt of a lazy and feeble mind to express itself forcefully”

                        B Offline
                        B Offline
                        brianwelsch
                        wrote on last edited by
                        #20

                        Nothing really. My reasoning was based on the fact that he's in is late 30's and has had a computer at home for over 20 years (Vic-20 1st system...). A grown man who has been around computers for so long and hangs out at CP probably has some programming experience. Even if he was going to school at his age, which is not unlikely, he wouldn't be asking for help on homework, blatently, but rather would try to get the most of his education and work through problems on his own. BW


                        If you're not part of the solution, you're part of the precipitate.
                        -- Steven Wright

                        N P 2 Replies Last reply
                        0
                        • B brianwelsch

                          Nothing really. My reasoning was based on the fact that he's in is late 30's and has had a computer at home for over 20 years (Vic-20 1st system...). A grown man who has been around computers for so long and hangs out at CP probably has some programming experience. Even if he was going to school at his age, which is not unlikely, he wouldn't be asking for help on homework, blatently, but rather would try to get the most of his education and work through problems on his own. BW


                          If you're not part of the solution, you're part of the precipitate.
                          -- Steven Wright

                          N Offline
                          N Offline
                          Nick Jacobs
                          wrote on last edited by
                          #21

                          Thanks Brian! You are right, I have had a computer around the house for many years now. For what it's worth, I do have a BS in Computer Science, Circa 1990. A couple of Masters Level credits too. I've been programming ever since, but not in this particular sense. Most has been with C++ in a engineering graphics environment. You just don't do set theory in that world. For this unique project, it's a matter of I haven't done it in 15 years. It's like most things, if you haven't done something for 15 years then chances are you'll have to reeducate yourself on what needs to be done. As I mentioned in another post, it's like Math, if somebody asked me to do Calc, I'd be in serious trouble, even though I've had 3 college level classes in calculus (More than the engineers I worked with), Differential Equations, Stats, etc. Again thanks. Nick This are my own opinions. You know the rest..... -- modified at 20:03 Sunday 14th May, 2006

                          B 1 Reply Last reply
                          0
                          • N Nick Jacobs

                            Thanks Brian! You are right, I have had a computer around the house for many years now. For what it's worth, I do have a BS in Computer Science, Circa 1990. A couple of Masters Level credits too. I've been programming ever since, but not in this particular sense. Most has been with C++ in a engineering graphics environment. You just don't do set theory in that world. For this unique project, it's a matter of I haven't done it in 15 years. It's like most things, if you haven't done something for 15 years then chances are you'll have to reeducate yourself on what needs to be done. As I mentioned in another post, it's like Math, if somebody asked me to do Calc, I'd be in serious trouble, even though I've had 3 college level classes in calculus (More than the engineers I worked with), Differential Equations, Stats, etc. Again thanks. Nick This are my own opinions. You know the rest..... -- modified at 20:03 Sunday 14th May, 2006

                            B Offline
                            B Offline
                            brianwelsch
                            wrote on last edited by
                            #22

                            Nick Jacobs wrote:

                            if you haven't done something for 15 years ...if somebody asked me to do Calc, I'd be in serious trouble

                            I know what you mean. I have a growing interest in learning about AI. I have [taken] several calculus courses, diff. Eq., etc, similar to you, yet I have this reluctance to reading too far into AI, because I know my math at this point has deteriorated to only a passing recognition of terminology, but nothing functional.

                            Nick Jacobs wrote:

                            Thanks Brian!

                            Anytime. :) BW


                            If you're not part of the solution, you're part of the precipitate.
                            -- Steven Wright

                            -- modified at 20:13 Sunday 14th May, 2006

                            1 Reply Last reply
                            0
                            • B brianwelsch

                              Nothing really. My reasoning was based on the fact that he's in is late 30's and has had a computer at home for over 20 years (Vic-20 1st system...). A grown man who has been around computers for so long and hangs out at CP probably has some programming experience. Even if he was going to school at his age, which is not unlikely, he wouldn't be asking for help on homework, blatently, but rather would try to get the most of his education and work through problems on his own. BW


                              If you're not part of the solution, you're part of the precipitate.
                              -- Steven Wright

                              P Offline
                              P Offline
                              Paul Conrad
                              wrote on last edited by
                              #23

                              brianwelsch wrote:

                              get the most of his education and work through problems on his own

                              I agree. I see CP like a virtual office water cooler where people can share thoughts and ideas. I didn't get the notion that the original post was a homework problem or programming question, but rather to see what ideas others may have had about the problem he was looking at. -- modified at 20:13 Sunday 14th May, 2006

                              1 Reply Last reply
                              0
                              • B brianwelsch

                                more hoping. :) BW


                                If you're not part of the solution, you're part of the precipitate.
                                -- Steven Wright

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

                                brianwelsch wrote:

                                more hoping.

                                ahhhh... vain hope, greatest and most deadly of the demons unleashed by Pandora. ;P _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                1 Reply Last reply
                                0
                                • G Gary R Wheeler

                                  Nick's profile is here[^]. If you read it, you find out he's been programming a long time and well beyond the need to post homework questions. Homework questions are typically posted with a statement of a problem and a demand, not a politely phrased request but a demand, for source code, and BTW they must have it by tomorrow or they'll flunk. Nick's original post was nothing like that. Cut him some slack.


                                  Software Zen: delete this;

                                  Fold With Us![^]

                                  J Offline
                                  J Offline
                                  Jerry Hammond
                                  wrote on last edited by
                                  #25

                                  I only gave my impression of his post and thus a posit about why it may have received so many 1 votes. Personally I don't care if his question was homework or not, but obviously it does to a lot of other folks who, like myself, don't reveiw the profile of every one who posts in the lounge. So, while we're cutting slack here...

                                  “Profanity is the attempt of a lazy and feeble mind to express itself forcefully”

                                  1 Reply Last reply
                                  0
                                  • D David Cunningham

                                    Lol. I should have known. :D David

                                    A Offline
                                    A Offline
                                    Andrew Bryan
                                    wrote on last edited by
                                    #26

                                    ok, this is way too funny... I never thought Dave would have remembered my site! Nick, I am going to be hit and miss online tonight (one of my servers had a motherboard melt (ok, not melt but it may as well have)... try to catch me on IM anyway. We may be able to come up with a solution or draw from the schedule from another feis (Chicago or Cleveland perhaps). Andrew Andrew Bryan

                                    1 Reply Last reply
                                    0
                                    • E El Corazon

                                      brianwelsch wrote:

                                      Check his profile. Not likely a homework question.

                                      You aren't honestly expecting everyone not to jump to conclusions and vote rashly? :omg: _________________________ Asu no koto o ieba, tenjo de nezumi ga warau. Talk about things of tomorrow and the mice in the ceiling laugh. (Japanese Proverb)

                                      J Offline
                                      J Offline
                                      Jeremy Falcon
                                      wrote on last edited by
                                      #27

                                      Or maybe not everyone looks as the profiles of every last poster in the world. I sure don't. Jeremy Falcon

                                      1 Reply Last reply
                                      0
                                      • N Nick Jacobs

                                        I've been "selected" to come up with a schedule of dance competitions. Not something I was expecting... Has anybody seen an algorithm that will allow to do to different weighted combinations into buckets? Here's an example: I've got 3 buckets (Stages actually) Competition 1: 3 Entries Competition 2: 4 Entries Competition 3: 2 Entries Competition 4: 1 Entry Competition 5: 2 Entries So the buckets would end up looking like this: B1: C1+C4 = 4 Entries B2: C2 = 4 Entries B3: C3+C5 = 4 Entries The idea is that each stage gets the same number of competitors so they all finish at the same time. Thanks for any help. Nick This are my own opinions. You know the rest..... -- modified at 22:46 Saturday 13th May, 2006

                                        D Offline
                                        D Offline
                                        deltaseq0
                                        wrote on last edited by
                                        #28

                                        I probably don’t understand all the parameters and constraints of Feis scheduling well enough so this is probably too simplistic but with regard to a brute force method, doesn’t the solution resemble a game of Tetris? In Excel, each of the 8 stages is a column and you add to cells the values 1 through 1220 representing the competitor. For example, competitor 111 has 3 entries so on Stage 3 there might be three rows containing 111. Perhaps as you continue adding competitors to stages an algorithm will come to mind that can be implemented in an Excel macro. If not, you would still have time to fill in the cells by hand.

                                        N 1 Reply Last reply
                                        0
                                        • D deltaseq0

                                          I probably don’t understand all the parameters and constraints of Feis scheduling well enough so this is probably too simplistic but with regard to a brute force method, doesn’t the solution resemble a game of Tetris? In Excel, each of the 8 stages is a column and you add to cells the values 1 through 1220 representing the competitor. For example, competitor 111 has 3 entries so on Stage 3 there might be three rows containing 111. Perhaps as you continue adding competitors to stages an algorithm will come to mind that can be implemented in an Excel macro. If not, you would still have time to fill in the cells by hand.

                                          N Offline
                                          N Offline
                                          Nick Jacobs
                                          wrote on last edited by
                                          #29

                                          deltaseq0 wrote:

                                          In Excel, each of the 8 stages is a column and you add to cells the values 1 through 1220 representing the competitor. For example, competitor 111 has 3 entries so on Stage 3 there might be three rows containing 111.

                                          Actually, I'm going to do something very similar to that. As I add a competition, I figure out which bucket has the fewest competitors in it, and just put it in there. The next competition will find the bucket with the smallest competitor count and add it, etc. This definitely wont provide the most effecient stage scheduling, but at least it's a start. If I had more time, like next year's feis, I'd probably look into a schedule where different scenarios are examined to determine what would be the most effecient. As it stands right now, there are about 80 different competitions where the competitors are split up into. Each competition is actually just designator for each kid's age. (They might have 3 different dance types, but we want all of the beginnner, age 5s to dance together on the same stage, so they don't have to move from stage to stage, kids tend to get lost when that happens, talk about parents yelling). I'll let ya know how it comes out. Nick This are my own opinions. You know the rest.....

                                          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