<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Simple LabVIEW Puzzle Challenge in BreakPoint</title>
    <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/784597#M6590</link>
    <description>&lt;P&gt;Actually, it would be much better to search the pairs in transposed order, else the computation time depends strongly on the "upper limit" input. For example, with an upper limit of 100, we need to look at 766 sums before finding the first number and with an upper limit of 1000, its 7965 inspections. In addition, if the upper limit is set too high, we get false solutions due to overflow of the I32&amp;nbsp;cube calculation.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;With the following code, the numbers are searched in a better order and the solution is found after only 57 sums, irrespecitve of the "upper limit" setting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/BreakPoint/6590/2/HardyTransposed.png" border="0" width="557" height="147" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Both find the same solution. Still, both&amp;nbsp;algorithms are theoretically flawed, because they both don't generate potential solutions in strictly ascending order, so how do we know that we really have the lowest of all potential solutions if we stop after the first match? For example if we set the upper limit at 1000 and generate all numbers that can be represented at least two ways as a sum of two cubes (1593 solutions), we can see that they are not found in sorted order. My transposed solutions is much better though, while my original solution is all over the place. Here are the candidates in the order found (the right panel is zoomed to for first 101 candidates, with the y axis mapped logarithmically).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/BreakPoint/6590/3/HardyDebug.png" border="0" width="837" height="365" /&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;/DIV&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by altenbach on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-29-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 11:29 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 30 Sep 2008 06:29:45 GMT</pubDate>
    <dc:creator>altenbach</dc:creator>
    <dc:date>2008-09-30T06:29:45Z</dc:date>
    <item>
      <title>Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773764#M6497</link>
      <description>&lt;P&gt;I am a big fan of &lt;A href="http://www.gamesmagazine-online.com/" target="_blank"&gt;Games Magazine&lt;/A&gt;&amp;nbsp;and have always enjoyed puzzles, so I decided to start a simple&amp;nbsp;fun thread about puzzles.&amp;nbsp; This is a perfect way to learn some tips and tricks using LabVIEW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since this is a programming challenge credit should be giving to speed...but I think presentation should also factor in.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first puzzle,&amp;nbsp;is a puzzle about crossing a rickety bridge in the dark.&amp;nbsp; It was originally published in Games Magazine but I do not have the original reference.&amp;nbsp;&amp;nbsp;Four people named 1, 2, 5, and 10 have to quickly cross the bridge.&amp;nbsp;&amp;nbsp;They have a single flashlight and everyone needs to get safely across.&amp;nbsp; 1 takes one minute, 2 takes&amp;nbsp;two minutes, 5 takes&amp;nbsp;five minutes, and 10 takes ten minutes.&amp;nbsp; Only two people are allowed across at any one time, and you must walk the speed of the slower person.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We will&amp;nbsp;have&amp;nbsp;1 and 2 go across first = 2 mins.&lt;/P&gt;&lt;P&gt;1 goes back = 1 min.&lt;/P&gt;&lt;P&gt;1 and 5 goes across = 5 mins.&lt;/P&gt;&lt;P&gt;&amp;nbsp;for a total of 8 mins. so far.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trick is to do this in&amp;nbsp; the minimum time possible (and no you don't get to throw the flashlight).&amp;nbsp; &lt;/P&gt;&lt;P&gt;There are solutions on the web but I would suggest if you've never seen this puzzle to avoid looking up the answer since&amp;nbsp;solving it is more fun.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The trick is to be creative and have fun and&amp;nbsp;I look forward to seeing your solutions.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-SS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2008 20:45:00 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773764#M6497</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-08T20:45:00Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773797#M6498</link>
      <description>It sounds like an interesting idea to try to solve these kinds of puzzles using LabVIEW.&amp;nbsp; But I would recommend finding the original writeup on this particular puzzle.&amp;nbsp; It sounds like this puzzle has a pretty easy solution that the 1 minute guy be the one who leads the others across and brings the flashlight back.&amp;nbsp; There must be some other catch to this described in the puzzle writeup that makes this more of a puzzle.&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;</description>
      <pubDate>Mon, 08 Sep 2008 21:45:11 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773797#M6498</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2008-09-08T21:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773805#M6499</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;ShotSimon wrote: &lt;BR /&gt;&lt;P&gt;Only two people are allowed across at any one time, and you must walk the speed of the slower person.&amp;nbsp; &lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Ravens Fan,&lt;/P&gt;&lt;P&gt;Does that line clear things up a bit&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&amp;nbsp; I did try to find the original source but no luck, I'll keep looking.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was afraid I would confuse people.&amp;nbsp; Let me know if it's clear now?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-SS&lt;/P&gt;</description>
      <pubDate>Mon, 08 Sep 2008 21:51:48 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773805#M6499</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-08T21:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773827#M6500</link>
      <description>Not really. &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://ni.lithium.com/i/smilies/16x16_smiley-sad.gif" alt="Smiley Sad" title="Smiley Sad" /&gt; Ravens Fan is right. In your description you stated that only two people are allowed to
cross, but in your example you indicate that 1 goes back alone. This
would seem to contradict the rules of crossing. There must be something missing from the puzzle, otherwise there's no reason not to have 1 take the trip back each time, and there would be only one (no pun intended) solution to the "puzzle".</description>
      <pubDate>Mon, 08 Sep 2008 22:43:43 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773827#M6500</guid>
      <dc:creator>smercurio_fc</dc:creator>
      <dc:date>2008-09-08T22:43:43Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773856#M6501</link>
      <description>&lt;P&gt;Okay, it is not as trivial as I thought.&amp;nbsp; (I was at work, and work was distracting me&amp;nbsp; &lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;)&amp;nbsp; I thought the easy solution was&amp;nbsp; 1&amp;amp;8 across (8) 1 back (1) 1&amp;amp;4 across (4) 1 back (1)&amp;nbsp; 1 and 2 across (2),&amp;nbsp; total 16 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I realized the trick was to try to minimize the times of the going over even if it costs you some time on the going back.&amp;nbsp; And the only way to do that was to merge the 4 guy with the 8 guy, but never let one of them walk back because you've already had 1 &amp;amp; 2 go across ahead of them.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;amp; 2 across (2)&amp;nbsp; 1 back (1)&amp;nbsp; 4 &amp;amp; 8 across (8)&amp;nbsp; 2 back (2)&amp;nbsp; 1&amp;amp;2 across (2), total 15 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any better solution?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Of course this could be done in LabVIEW or any programming language.&amp;nbsp; Probably generating a table that sets up all the permutations of over and back for the different people, doing the calculations, then sorting the list to find the one that has the&amp;nbsp; lowest total.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other possibility is that it is an interactive game where a user clicks on each person, the program determines whether it is a valid move, logs it and totals the time.&amp;nbsp; Then it could keep track of the lowest time to date and the corresponding moves and allows the player to try again.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I had forgotten about Games magazine.&amp;nbsp; My sister used to get it back when we were kids.&amp;nbsp; I would read it and do the puzzles after she was done with it.&amp;nbsp; They had a lot of really good logic puzzles that sometimes seemed downright impossible.&amp;nbsp; Is the magazine still around?&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Ravens Fan on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-08-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 09:24 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Sep 2008 01:24:51 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/773856#M6501</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2008-09-09T01:24:51Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774264#M6508</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;smercurio_fc wrote: &lt;BR /&gt;"In your description you stated that only two people are allowed to cross, but in your example you indicate that 1 goes back alone. This would seem to contradict the rules of crossing."&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Ravens Fan wrote: &lt;/P&gt;&lt;P&gt;"1&amp;amp;8 across (8) 1 back (1) 1&amp;amp;4 across (4) 1 back (1)&amp;nbsp; 1 and 2 across (2),&amp;nbsp; total 16 minutes."&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Sorry for the late reply,&amp;nbsp;Enthusiast's are a tough crowd&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;OK some clarification is needed.&amp;nbsp; The idea is that the bridge can only handle &lt;STRONG&gt;at most&lt;/STRONG&gt; two people.&amp;nbsp; One person can certainly cross alone and needs to in order to&amp;nbsp;bring the flashlight safely back to the others.&amp;nbsp; You need the flashlight for safety as it is a dark rickety bridge&lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://ni.lithium.com/i/smilies/16x16_smiley-wink.gif" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The actual description of this puzzle was something like two sentences so you have to make assumptions about not cheating, etc.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Raven's Fan is on the right track but were he&amp;nbsp;came up with 4 and 8 I'll never know.&amp;nbsp;&amp;nbsp;It's interesting to note with software it could be any four positive integers.&amp;nbsp; It would be interesting to see which give the best result for example.&amp;nbsp; For now lets stick with 1, 2, 5, and 10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also if you get a solution I was hoping people would post in LabVIEW.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I can tell you the answer which was also in the original problem and it is&amp;nbsp;"17".&amp;nbsp; There is no doubt most people can solve this on paper in a few minutes but I think you will enjoy the solution.&amp;nbsp; In a way it is not common sense.&amp;nbsp; For example&amp;nbsp;1 is not the person who is used the most, as most people would think.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Enjoy, I will post&amp;nbsp;a solution once I feel people have had an adequate go at it&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-SS&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by ShotSimon on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-09-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 09:51 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Sep 2008 14:51:16 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774264#M6508</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-09T14:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774272#M6509</link>
      <description>Ravens Fan already provided the solution. Adapting his numbers to 5 and 10 results in 17 minutes.</description>
      <pubDate>Tue, 09 Sep 2008 14:56:34 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774272#M6509</guid>
      <dc:creator>tst</dc:creator>
      <dc:date>2008-09-09T14:56:34Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774320#M6510</link>
      <description>&lt;P&gt;I have no idea where I got 1, 2, 4, and 8 from either.&lt;img id="smileysurprised" class="emoticon emoticon-smileysurprised" src="https://ni.lithium.com/i/smilies/16x16_smiley-surprised.gif" alt="Smiley Surprised" title="Smiley Surprised" /&gt;&amp;nbsp; I think went back to read the original message I saw the 8 total minutes in the example and must have run with that.&lt;/P&gt;&lt;P&gt;I must have started thinking in binary numbers, 1, 2, 4, 8&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://ni.lithium.com/i/smilies/16x16_smiley-happy.gif" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My original guess should have been&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1&amp;amp;10 across (10) 1 back (1) 1&amp;amp;5 across (5) 1 back (1)&amp;nbsp; 1 and 2 across (2),&amp;nbsp; total 19 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and the correct guess as tst said:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 &amp;amp; 2 across (2)&amp;nbsp; 1 back (1)&amp;nbsp; 5 &amp;amp; 10 across (10)&amp;nbsp; 2 back (2)&amp;nbsp; 1&amp;amp;2 across (2), total 17 minutes.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The other correct answer would be 2 coming back first and 1 coming back 2nd which would be the same total time.&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Ravens Fan on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-09-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 11:30 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Sep 2008 15:30:56 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774320#M6510</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2008-09-09T15:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774334#M6511</link>
      <description>&lt;P&gt;You guys are cracking me up&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm looking for a LabVIEW solution for people to show off there creativity and coding skills, not for someone to post the solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Part of the fun with puzzles is to see how&amp;nbsp;others&amp;nbsp;solve it, even if you already know the solution.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-SS&amp;nbsp; &lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2008 15:46:03 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774334#M6511</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-09T15:46:03Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774344#M6512</link>
      <description>&lt;P&gt;I did post a couple of ideas in reply 5.&amp;nbsp; But I don't feel like putting in all the effort to actually code something up.&amp;nbsp; Too many projects at work and at home I should be doing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which were you thinking of as the challenge, LV program to solve and finding the solution?&amp;nbsp; Or a LV program as a game to help a person to discover the solution.?&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2008 15:57:06 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774344#M6512</guid>
      <dc:creator>RavensFan</dc:creator>
      <dc:date>2008-09-09T15:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774350#M6513</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;Ravens Fan wrote: &lt;BR /&gt;&lt;P&gt;Which were you thinking of as the challenge, LV program to solve and finding the solution?&amp;nbsp; Or a LV program as a game to help a person to discover the solution.?&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Either would be acceptable, but the game sounds like it would take longer.&amp;nbsp; -SS&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2008 16:01:08 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774350#M6513</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-09T16:01:08Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774397#M6514</link>
      <description>&lt;P&gt;Ok, I'll go first.&amp;nbsp; Here's a brute force approach that discovers the optimal time very quickly.&amp;nbsp; Theoretically this approach could take an extremely long time if the random pulls are infinitely unlucky.&amp;nbsp; I'm guessing some math whiz could come up with a better way to pre-calculate all the possible combinations and just run through those.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here's a screenshot of the diagram, and the VI (saved in LabVIEW 7.0) is attached below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/BreakPoint/6514/1/bridge_crossing_diagram.PNG" border="0" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-D&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;P.S. - GAMES magazine is awesome!&amp;nbsp; My favorite puzzles are Cryptic Crosswords and Cartoon Rebuses. &lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Darren on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-09-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 12:19 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Sep 2008 17:19:25 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774397#M6514</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2008-09-09T17:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774415#M6515</link>
      <description>&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Excellent! I love the icon&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&amp;nbsp; -SS&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2008 17:34:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774415#M6515</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-09T17:34:45Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774547#M6516</link>
      <description>&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After further review I realize your solution doesn't actually provide or show the order of who went where and when&lt;img id="smileytongue" class="emoticon emoticon-smileytongue" src="https://ni.lithium.com/i/smilies/16x16_smiley-tongue.gif" alt="Smiley Tongue" title="Smiley Tongue" /&gt;&lt;/P&gt;&lt;P&gt;But it's still the only attempt so far.&amp;nbsp; -SS&lt;/P&gt;</description>
      <pubDate>Tue, 09 Sep 2008 21:30:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774547#M6516</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-09T21:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774555#M6517</link>
      <description>&lt;P&gt;Easy enough to add...the data was on the diagram, just needed to add it to the panel:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/BreakPoint/6517/2/bridge_crossing2_panel.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-D&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Darren on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-09-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 04:43 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 09 Sep 2008 21:43:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774555#M6517</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2008-09-09T21:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774998#M6520</link>
      <description>&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Looks like you're the only one to take the challenge.&amp;nbsp; I really like your very simple brute force approach.&amp;nbsp; When I solved the problem I got it stuck in my head to use toggling&amp;nbsp;back and forth between&amp;nbsp;moving two over and one back.&amp;nbsp; I was playing around with logical checks such as 5 &amp;amp; 10 must go together but gave up since it made the vi very complicated.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I plan on creating another solution that generates all possible solutions as you suggested.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my solution, FYI you solved the puzzle much faster than I did using LabVIEW very impressive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will post a new puzzle shortly.&amp;nbsp; -SS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/BreakPoint/6520/1/Bridge_Puzzle1.PNG" border="0" width="1176" height="640" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/BreakPoint/6520/2/Bridge_Puzzle2.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by ShotSimon on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-10-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 09:33 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Sep 2008 14:33:19 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/774998#M6520</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-10T14:33:19Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/775067#M6521</link>
      <description>&lt;P&gt;OK LabVIEW puzzle #2 is more challenging and is known as a &lt;A href="http://en.wikipedia.org/wiki/Magic_star" target="_blank"&gt;magic star&lt;/A&gt;.&amp;nbsp; I will provide the start to one solution but would like to see someone solve for &lt;STRONG&gt;all&lt;/STRONG&gt; solutions.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The rules are similar to a magic square.&amp;nbsp; Using the integers 1-12, each only once, complete the magic star such that each line of four number's sum is equal to the same number &lt;STRONG&gt;26&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Since this is a harder puzzle I may post a new puzzle before this one is completely solved by someone.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-SS&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/BreakPoint/6521/1/Magic_Star.PNG" border="0" /&gt;&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by ShotSimon on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-10-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 10:49 AM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Sep 2008 15:49:45 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/775067#M6521</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-10T15:49:45Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/775260#M6523</link>
      <description>&lt;P&gt;Here's my solution for the Magic Star.&amp;nbsp; It generated 960 solutions.&amp;nbsp; Since there are over 479 million combinations of the numbers 1-12 in the star, it took this VI a couple of hours to run.&amp;nbsp; Again, I used a brute force approach, but this time I was able to calculate every single possible combination (compared to the random combinations I used in the Bridge Crossing problem).&amp;nbsp; Also, credit partially goes to a permutation VI I found at &lt;A href="http://www.fafiles.com/examplevis.php" target="_blank"&gt;http://www.fafiles.com/examplevis.php&lt;/A&gt; that I used as inspiration in calculating my permutations.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The VI is saved in LabVIEW 8.5 this time, since I used &lt;A href="http://zone.ni.com/reference/en-XX/help/371361E-01/lvhowto/add_cond_to_for_loop/" target="_blank"&gt;For Loop with Break&lt;/A&gt; in my solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/BreakPoint/6523/3/magic_star_panel.PNG" border="0" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;IMG src="http://forums.ni.com/ni/attachments/ni/BreakPoint/6523/2/magic_star_diagram.PNG" border="0" width="876" height="393" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;-D&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by Darren on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-10-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 03:02 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Sep 2008 20:02:32 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/775260#M6523</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2008-09-10T20:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/775287#M6524</link>
      <description>&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That is amazing and very well done.&amp;nbsp; My guess is you are a puzzle master.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've decided to leave Puzzle #3 open for you to choose...since I can't give away prizes&lt;img id="smileyvery-happy" class="emoticon emoticon-smileyvery-happy" src="https://ni.lithium.com/i/smilies/16x16_smiley-very-happy.gif" alt="Smiley Very Happy" title="Smiley Very Happy" /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try to keep the level of difficultly&amp;nbsp;between&amp;nbsp;LabVIEW&amp;nbsp;Puzzle #1 and Puzzle #2.&amp;nbsp; -SS&lt;/P&gt;</description>
      <pubDate>Wed, 10 Sep 2008 20:45:52 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/775287#M6524</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-10T20:45:52Z</dc:date>
    </item>
    <item>
      <title>Re: Simple LabVIEW Puzzle Challenge</title>
      <link>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/775311#M6525</link>
      <description>&lt;P&gt;Darren,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is&amp;nbsp;known as a&amp;nbsp;&lt;A href="http://www.geocities.com/~harveyh/order6.htm" target="_blank"&gt;magic star order 6&lt;/A&gt; and has 80 solutions.&amp;nbsp; I think the 960 comes about if you count rotated solutions as different solutions, so you are correct.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is interesting to note some people solve all 80 with paper and pencil using logic no programming.&amp;nbsp; -SS&lt;/P&gt;&lt;DIV class="message-edit-history"&gt;&lt;SPAN class="edit-author"&gt;Message Edited by ShotSimon on &lt;/SPAN&gt;&lt;SPAN class="local-date"&gt; 09-10-2008&lt;/SPAN&gt;&lt;SPAN class="local-time"&gt; 04:25 PM&lt;/SPAN&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 10 Sep 2008 21:25:14 GMT</pubDate>
      <guid>https://ni.lithium.com/t5/BreakPoint/Simple-LabVIEW-Puzzle-Challenge/m-p/775311#M6525</guid>
      <dc:creator>ShotSimon</dc:creator>
      <dc:date>2008-09-10T21:25:14Z</dc:date>
    </item>
  </channel>
</rss>

