Sponsored by NuSphere - PHP Software for PHP Application Developers - On Sale This Week for $100



Go Back   PHP-Editors > Programming Contests > PHP Programming Contests

PHP Programming Contests Everything to do with the PHP Programming Contests.

Reply
 
LinkBack Thread Tools Display Modes
  #31 (permalink)  
Old 2004-07-02, 09:27 PM
Junior Member
 
Join Date: Apr 2004
Posts: 6
quadra23
Default

Note: this is the exact some post as I replied with in the Future Contests topic, it seems that I didn't post it in the right topic since this is more of a suggestion.

I think an excellent contest would be one that implements the Condorcet Voting method ( explained for example, at http://electionmethods.org/ ). Since it's a more fair voting system that improves immensely on our current voting system. This would be a worthwhile and very real life project IMHO.

I'm sure this could be done with PHP and MySQL although it will probably get far more complicated with a variable number of candidates (adding more to the programming fun and learning!). Anyone else think this is a good idea?
Reply With Quote
  #32 (permalink)  
Old 2004-10-07, 03:48 AM
Guest_Eric
Guest
 
Posts: n/a
Default

Ok so I got sorta got this idea from: http://icpc.baylor.edu/past/icpc2004/Final...sProblemSet.pdf

The problem is called merging maps. Basically your script will be passed a 3 dimensional array, the first dimension is the number of the map segment you are merging, the next two are x and y coordinates representing a graph so
something like this: (i dont know if this will work its an example)
Code:
0000D
000DF
000EE    
00EGG
0000H
so the input for the left hand upper corner would be $map[1][0][0] and it would be equal to zero because a zero is there.

The idea of the script is to take these segments of map and merge them together into a large (square) map with like features near to each other (the features are represented by letters and the script should align like features diagonally, horizontally or vertically. When the maps are merged they must form a perfect square.
Reply With Quote
Must read Review for Serious PHP Developers


NuSphere PhpED 5.0 : The Staff of php-editors.com recently spent a few days working with NuSphere PhpED 5.0 (a popular PHP IDE) and NuCoder 1.4 (a PHP Encoding Utility), read up on all the details.

Sponsored Links
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:07 PM.


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.1.0
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.