Project Detail

Rectangles  

Rectangles is project number 493337
posted at Freelancer.com. Click here to post your own project.

 

| More Free Trial For New Buyers
 

Status:

Selected Providers: rajtuhin1

Budget: $30-250

Created: 08/22/2009 at 8:05 EDT

Bid Count: 18

Average Bid:
$ 155

08/29/2009 at 8:05 EDT

Project Creator: ardud
Employer Rating: (No Feedback Yet)

Bid On This Project
 

Description

I need a program written in C# which should do the following thing:

At the input we have the file "input.txt" in the following format
N, A, B

where

N - the number of rectangles
A- the length of the first edge of the rectangle (integer not larger than 50 and not smaller than 5)
B- the length of the second edge of the rectangle (integer not larger than 50 and not smaller than 5)

1. The program should place at randomly chosen positions N rectangles with edges with length A and B at randomly chosen positions. All coordinates of vertices of rectangles should be integers not larger than 800 (this number should be the parameter of the program) and not smaller than 1. Rectangles can overlap. Rectangles have red color and are placed at the initially blue square with the edge with length 800.
2. We will say that a point P is of type 1 if it is possible to go from the left edge of the square to the right edge of the square trough any path without crossing any red points. Points situated within the square of length 800 for which it is not possible and all points situated are called "points of type 0".
3. Points of type 0 are separated from the points of type 1 by a set of polygons. The program should find all these polygons. The file "output.txt" should be produced which should be in the following format:

The first line should contain the number of polygons.
The format of next lines should be following
NV, X1, Y1, X2, Y2, ...
where NV - the number of vertices, X1, Y1- the first and the second coordinate of the first vertex of the polygon,...
4. Program should visualize results producing the figure at which rectangles found in point 1 should be drawn with red color and polygons separating regions of type 1 from regions of type 0 should be drawn with black color.
The program should work in reasonable time - let us say that at least for parameters of type N=640, A=B=10 it should not work longer than about 6 hours on a typical PC.


The project in principle concerns above described problem with rectangles, however let me know if you are able within the budget to write analogous program for


Additional information submitted:

08/24/2009 at 10:40 EDT:
I want to clarify the above description:
1. The last sentence in the point 2 should be "Points situated within the square of length 800 for which it is not possible and all points situated OUTSIDE THE 800x800 SQUARE" are called "points of type 0".

2. By "any path" in the point 2 I mean any curve which doesn't cross red points and goes trough the point P. If it isn't clear enough: Let us imagine that into the square flows liquid trough the left edge of 800*800 square. The point P is of type 1 if the liquid in principle can reach the point P and then leave the large square trough the right edge.

3. Please note that the problem is a bit more difficult that just finding polygons which separate points of type 1 from points of type 0 (see attached pdf).

4. For me it is satisfactory if rectangles which are placed randomly in the point 1 have edges which are parallel to the edges of 800*800 square.

5. To clarify the problem I attach the file Example.pdf. In this file 800*800 square has grey color (instead of blue mentioned in point 1), however it doesn't matter of course. The program should produce the list of vertices of polygons which are drawn with the yellow color.


Additional files submitted:
Example.pdf

Messages Posted:1 View project clarification board Post message on project clarification board

Bid On This Project
 

If you are the project creator or one of the bidders Log In for more options

 

90

0 days

08-23-2009 00:39 EDT

I Can complete this in few hours so contact me in pmb ASAP. THANKS AND REGARDS : TUHIN

help

 

400

5 days

08-22-2009 10:59 EDT

Hi, More info was sent to you in the PM. Best Regards, Yousef

help

 

250

5 days

08-23-2009 01:24 EDT

I am ready to start it now!!!! have done alot of screen savers and played a lot with GDI.

help

 

250

6 days

08-22-2009 15:02 EDT

willing to work for the task

help

 

30

10 days

08-24-2009 13:14 EDT

hi i can do this.

help

 

180

4 days

08-24-2009 01:21 EDT

Hi, I had gone through each point of the project description. I had understood and clearly mention about it in PMB. Kindly check and let me know.

help

 

250

5 days

08-23-2009 03:10 EDT

Please check PMB

help

 

50

2 days

08-23-2009 05:14 EDT

Hello. I can do this project. Regards.

help

 

250

4 days

08-22-2009 10:49 EDT

(No Feedback Yet)

Hi, We have extensive experience in C#, Net, MySql etc. and are interested to work on your projects. Let us know your requirement in detail, so that we could offer you effective estimate and quality. For more of our detail please view your private message box. Regards

help

 

200

3 days

08-22-2009 18:03 EDT

(No Feedback Yet)

Hello, I have experience in similar algorithms (Master degree in CS, ACM ICPC participation) and can solve this task.

help

 

150

2 days

08-22-2009 21:57 EDT

(No Feedback Yet)

hi, Please check my pm.

help

 

100

2 days

08-22-2009 23:31 EDT

(No Feedback Yet)

I can start now.

help

 

60

3 days

08-23-2009 01:41 EDT

(No Feedback Yet)

I can do this, please contact me.

help

 

60

15 days

08-23-2009 05:21 EDT

(No Feedback Yet)

4 years experience in .Net. Will be able to implement the required problem.

help

 

30

1 day

08-23-2009 06:28 EDT

(No Feedback Yet)

3+ years of C# experience. It will be a win forms C# application based on one window.

help

 

135

4 days

08-23-2009 13:34 EDT

(No Feedback Yet)

Hello, Programming C# by 3 years. I can handle the task. If the algorithm is correct can be done for another figure.

help

 

211

20 days

08-23-2009 14:54 EDT

(No Feedback Yet)

I have more than 7 years of IT experience that includes software development, Projects Support and Enhancements. I do have ability to translate business needs into technology requirements that support the company business objectives and to successfully manage all phases of IT projects from needs analysis and requirements. "Quality Solution for total Satisfaction...."

help

 

100

5 days

08-24-2009 00:34 EDT

(No Feedback Yet)

Hey please give me one chance i will never let u down. i m expert in C# applications and i developed some projects like 1= Contact Management System 2= Office Security System by face Recognition techniques. Please i m new on this website and really desire to work on this project. One thing i mentioned u very honestly that i have no such knowledge in objective C which is the language of the IPHONE but i assured u i have a good knowledge in Desktop or Web based application

help


    Bid on this Project