03-10-2006 11:06 AM
For those of you still watching this thread, here's a treat:
NI is working on an official posting of the results of this challenge. It took longer than expected for several reasons. It should appear shortly.
We are also working on the next challenge. It looks like it will be playing 4x4 tic tac toe. Each entry will play one side of the game, and all the entries will play all the others, once as X and once as O. The most points (win=2, draw=1) wins. Does this sound like an interesting challenge?
Bruce
03-11-2006 12:32 PM
Yes, and rooted more in good algorithm design and less in finding the most efficient math algorithm, so I might just take a shot at it if I have the time.
@Bruce Ammons wrote:
Does this sound like an interesting challenge?
04-26-2006 09:43 PM
The tic tac toe challenge was just posted today. We are playing on a 4x4 grid, and the goal is to LOSE the game by forcing your opponent to win. It should be interesting. Look for the new discussion thread to go with it.
Bruce
04-27-2006 07:52 AM - edited 04-27-2006 07:52 AM
@Bruce Ammons wrote:
The tic tac toe challenge was just posted today. We are playing on a 4x4 grid, and the goal is to LOSE the game by forcing your opponent to win. It should be interesting. Look for the new discussion thread to go with it.
Bruce
Sounds neat, but the link to the new challenge on the labview zone page still points to the old prime factor challenge. Am I missing something?
Ok, nevermind - just got fixed.
Message Edited by bsquared on 04-27-2006 07:53 AM
01-22-2007 12:36 PM
01-22-2007 02:05 PM
01-23-2007 02:07 AM
01-23-2007 10:59 AM
Thanks Shane!
There are some clever things in there that will take me awhile to digest, but I think I understand the general approach. Very nice.
I'm working on a version which implements a cache blocking approach to sieving. I've gotten this to work in C, and wondered if I could do the same in labview. I'll post the result if I get it to work.
thanks again,
- ben.
01-23-2007 11:36 AM - edited 01-23-2007 11:36 AM
For your entertainment, here's one of my simpler versions (LabVIEW 7.1). I think it produces correct results. In spirit, it's pretty similar to Shane's. 🙂
Sieve on the left, trial division on the right. (Sieve runs only once, then caches prime array in shift register).
Message Edited by altenbach on 01-23-2007 09:40 AM
Message Edited by altenbach on 01-23-2007 09:45 AM
01-24-2007 02:17 PM
For anyone that's interested, here's a different version of the sieve. No, I haven't been working on it since '05
, but it seems to be pretty fast, so I wish I did it back when the challenge was going on ![]()
I only recently learned about the technique I used (in a C program I've been developing), and wondered how it would work implemented in labview. Enjoy.
- ben.