Assign x,y co-ordinates depening on priority and radius

Selesai Dipasang Sep 17, 2011 Dibayar saat pengiriman
Selesai Dibayar saat pengiriman

I need to select x,y co-ords(we will call them flowers) from one table, and display them on screen where user can enter radius, and priority for each flower selected.

Then, i need to select x,y coords(we will call them bees) from another table, and print out a list of which bees should go to which flowers.

A bee cannot go to two flowers, only one.

Basically.

If(bee is within flower radius){check to see if it is within another flower radius}

Assign bee to flower with highest priority.

If(priority is the same) {assign to flower with least amount of bees assigned to it}

If a bee is not within any flower radius, ignore it.

At the end it needs to give me data I can then plot on a 'map' with gd library(i will do this myself)

Code needs to be HEAVILY commented.

Assume the person reading it does not know php or mysql.

MySQL PHP Perancangan Perangkat Lunak Pengujian Perangkat Lunak Interface Pengguna / Arsitek Info Hosting Web Manajemen Situs Web Pengujian Situs Web

ID Proyek: #3578676

Tentang proyek

3 proposal Proyek online Aktif Sep 17, 2011

Diberikan kepada:

auteriumeu

See private message.

$21.25 USD dalam 14 hari
(14 Ulasan)
3.9

3 freelancer rata-rata menawar $21 untuk pekerjaan ini

shihan033010

See private message.

$20 USD dalam 14 hari
(248 Ulasan)
6.4
SGTBE

See private message.

$21 USD dalam 14 hari
(3 Ulasan)
0.9