Find Jobs
Hire Freelancers

Python Program for Mathematical Solutions

€30-250 EUR

Closed
Posted 15 days ago

€30-250 EUR

Paid on delivery
A real estate owner in California, Lida, inherits a piece of land. The land is modeled as a rectangular patch of variable size. The patch of land is represented with an image (list of lists). To make some money out of it, she can decide to lease the land to other people. To do that, she may decide to divide the land into four other patches. In case she decides to not lease the land, no further sub-patches are created. On the contrary, in case the land is divided into four sub-patches, some colored marks (straight lines) on the land are drawn with a thickness of one pixel to mark the private properties that are created. There is no prior knowledge of how and where the lines will be drawn, nor which colors will be used (there is no regular pattern). The only knowledge is that the lines are axis-aligned. The four lessees that receive the sub-patches of land may take the same decision that Lida took before them. They may decide to sublease once again their small patch to others or, else, to keep the land all for themselves. The decision for each lessee is independent of each other. For example, lessee #1 may decide to sublease again, while lessee #2 may keep the land for himself, etc, whereas lessee #3 and #4 may subdivide. If they sublease and divide, they follow the same policy of dividing in four parts and setting their boundaries with line drawing but obviously with a different splitting position of their land. For sure, they will be using a color that is different from the colors used by Lida yet they will be using the same color among them, at the same level of splitting. NOTE: An important note is that the color of the background (bg) of the land is not given (i.e. we do not know if the bg is black, or white or blue etc) but we do know that the background land color is NOT used by any of the lessees ever to mark their boundaries. The subdivision process could continue until when all the lessees in all patches stop subdividing their land. This process described here leads us to the image that is taken as input to a program. NOTE: You can assume that the smallest possible rectangular patch has the shortest side of two pixels in length. Think well about the problem and once you are sure of a solution, design on the paper (this "design" needs be then described into the pseudo code part) and then implement a program ex1(input_file, output_file) which: - reads the file indicated by the parameter 'input_file' using the 'images' library - preprocesses the image--if needed--and implements a *recursive* function to solve the requirements below. - counts all the patches of lands that are in the image and returns the number of patches. It should return the number of rectangles with the color of the background that is present in the image. Regarding the simplified case below: # +++++++++++++++++++ # +-1-|-2-|---------+ # ++++a+++|----5----+ # +-3-|-4-|---------+ # ++++++++b++++++++++ # +-------|--7-|-8--+ # +---6---|++++c+++++ # +-------|-10-|-9--+ # +++++++++++++++++++ the approach should return 10 as the total number of patches. (The numbers in the simplified case above are just added for the sake of clarity. The image data does not contain those numbers, obviously). - finally, given that the real estate registry needs to book-keep all the boundaries created, the program shall build an output image of the size of 1x(N+1). The image encodes as the first pixel the color of the background. Then it should encode "the color hierarchy" of all the N colors used to subdivide the patches of land. The hierarchy is defined by "visiting" first in depth the upper left patch, then upper right patch, then lower left, and lower right. The colors should be stored in reverse order with respect to the "visit" made. With reference to the previous semplified case, assuming a boundary color is described with a letter, the output image should contain: out_colors = bg b c a Another case a bit more complex: +++++++++++++++++++++++++++++++++++++ +-1-|-2-|---------|--------|--------+ ++++a+++|----5----|---6----|----7---+ +-3-|-4-|---------|--------|--------+ ++++++++b+++++++++|++++++++c+++++++++ +-------|--9-|-10-|--------|--------+ +--8----|++++d++++|---13---|---14---+ +-------|-11-|-12-|--------|--------+ ++++++++++++++++++e++++++++++++++++++ +-15|-16|---------|--------|-21|-22-+ ++++f+++|---19----|---20---|+++g+++++ +-17|-18|---------|--------|-23|--24+ ++++++++h+++++++++|++++++++l+++++++++ +-------|-26-|-27-|--------|-31-|-32+ +--25---|++++m++++|---30---|+++n+++++ +-------|-29-|-28-|--------|-33-|-34+ +++++++++++++++++++++++++++++++++++++ n_rect is: 34 the color hierarchy is: bg e l n g h m f c b d a NOTE: it is forbidden to import/use other libraries or open files except the one indicated NOTE: The test system recognizes recursion ONLY if the recursive function/method is defined in the outermost level. DO NOT define the recursive function within another function/method otherwise, you will fail all the tests. """ import images def ex1(input_file, output_file): # write your code here pass if __name__ == '__main__': # write your tests here pass
Project ID: 38053207

About the project

22 proposals
Remote project
Active 13 days ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
22 freelancers are bidding on average €146 EUR for this job
User Avatar
I am Python developer with expertise in image processing and recursion. I am confident in implementing the program to count land patches in the given image and generate an output image depicting the color hierarchy. Further details and cost can be discussed.
€250 EUR in 2 days
5.0 (177 reviews)
7.8
7.8
User Avatar
Hello, good time Hope you are doing well I'm expert in MATLAB/Simulink, Python, HTML5, CSS3, Java, JavaScript and C/C#/C++ programming and by strong mathematical and statistical background, have good flexibility for solve your project. I have many experience practical and theoretical in implementation different algorithms (such as: state estimation and Kalman filter, design controller, analysis closed loop stability, signal and systems, signal processing, heuristic optimization, fuzzy logic, neural network and machine/deep learning fields). Evidence of this claim exist in the portfolio. I have read your project description and I can help you (without any plagiarism). Please send me the details of your project. Thanks for attention 100% Jobs Completed, 100% On Budget, 100% On Time ⭐⭐⭐⭐⭐ 5-star reviews
€250 EUR in 7 days
5.0 (32 reviews)
7.2
7.2
User Avatar
❇️ I understand your requirements for a program to count patches of land and build a color hierarchy. I can develop a recursive function to solve this problem efficiently. My solution will read the input image, preprocess it if needed, and count the patches of land, returning the number of rectangles with the background color. I will also build an output image with the color hierarchy. Let's discuss the details in chat! Here are some of my relevant projects: ✅ Land Patch Counter ✅ Color Hierarchy Builder ✅ Recursive Function Expert ✅ Image Processing Pro ✅ Real Estate Registry ✅ Boundary Detection ✅ Color Encoding ✅ Image Output Generator ✅ Patch Counting Algorithm
€140 EUR in 2 days
5.0 (40 reviews)
6.3
6.3
User Avatar
Hi, Statistics is my favorite subject and will be glad to help. I have skills in Data Processing, Statistics, R Programming Language, SPSS, Tableau Excel and python.
€120 EUR in 5 days
4.9 (37 reviews)
5.7
5.7
User Avatar
Hello, I have rich exp in ACM/ICPC and deep understandings of algorithms for Classifications, NLP, Image, speech and text Processing,Neural Networks,e.t.c I am an MSc majored in mathematics. (Probability and Statistics in detail) Consultation is also welcome. I have have rich experience in mathematical and algorithm problems. I can help you get insights on the data you described. Algorithm(exp. in ACM/ICPC)/Artificial intelligence(AI) Machine Learning (Neural Networks), Deep Learning C++/C#/Matlab/R/Python/java I will be more than excited to provide you a quality solution and earn your respect, confidence and trust
€150 EUR in 2 days
4.6 (55 reviews)
6.1
6.1
User Avatar
Hello , Sir/ Mam I have checked Requirements As a seasoned developer with a wealth of Experience I'm confident I can bring your virtual reality project to life. My track record as demonstrated in my 100% job completion and 5-star review rating showcases My ability to deliver exceptional results on time and with utmost quality I believe that my skill set makes me the ideal candidate for this project Please come on chat we will discuss more about this I will be waiting for your reply . Thank you !
€140 EUR in 2 days
5.0 (28 reviews)
5.3
5.3
User Avatar
I will show you my recent projects related to Mathematical Solutions then we will move forward. So it's surety for you to get perfect solutions from my side. Also, if you want demo-type things or initial work for your project, then I will show you, and after that, we will finalize our project deal and payment milestones. I am from India, GMT +5:30, and I am available from 8:00 a.m. to 11:00 p.m. We have 16+ years of experience in software development. We have developed over 600 projects and research papers in the fields of machine learning, artificial intelligence, image processing (GIS), network, and SEO-based web and mobile apps. We have successfully completed the projects ChatGPT, Deep Learning, Computer Vision, Natural Language Processing (NLP), Encryption Decryption, Face Detection, UML Diagram, OCR, Big Data, Data Mining, Data Analysis, Statistics, Trading, Text, Image, Multiclass Classification Using Azure ML, Tensorflow, R Programming, OpenCV, Matlab, Hadoop, Artificial Intelligence Program Using PROLOG, Robotics Software, TCP-UDP Networking Project, Cloud Computing, etc. Note: The project has QA, testing, and comments in the code, so it's easy to understand the flow of the project.
€300 EUR in 7 days
4.9 (18 reviews)
5.3
5.3
User Avatar
Hi. Thanks for your posting. I have just read your proposal and I am sure I can complete the project on time. I am a mathematician who has 15 years of experiences in Numerical/Statistical Analysis(Matlab/Python/R, ....) Please contact me to discuss the project in more details. Waiting for your contact now... Thanks. Best Regards.
€100 EUR in 2 days
4.7 (17 reviews)
5.1
5.1
User Avatar
Hi , How are you doing? As a professional developer with expertise in Python, Software Architecture, Algorithm, Mathematics and Matlab and Mathematica, I eagerly anticipate the opportunity to complete this project for you. Please drop me a message to discuss the project detail. Thank you for considering my services.
€46 EUR in 2 days
5.0 (2 reviews)
3.8
3.8
User Avatar
⭐ Hi, My availability is immediate. I read your project post on Python Developer. We are experienced full-stack Python developers with skill sets in - Python, Django, Flask, FastAPI, Jupyter Notebook, Selenium, Data Visualization - Web App Development, Data Science, Web/API Scrapping, Machine Learning, AI - API Development, Authentication, Authorization - SQlAlchemy, PostegresDB, MySQL, SQLite, SQLServer, Datasets - Web hosting, Docker, Azure, AWS, Digital Ocean, GoDaddy, Web Hosting - ML Algorithms: linear regression, logistic regression, decision trees, random forests, neural networks, etc - Python Libraries: NumPy, pandas, scikit-learn, tensorflow, etc. Please send a message So we can quickly discuss your project and proceed further. I am looking forward to hearing from you. Thanks
€240 EUR in 3 days
4.3 (18 reviews)
4.3
4.3
User Avatar
Hello, Lida! I am Mohamed, a seasoned Python developer and data analysis expert. I work with large datasets of varying complexities daily, leveraging the power of Python and its libraries like Pandas, Numpy and Matplotlib that would come in handy with your real estate project in California. With the intricacies surrounding your project's dataset - pre-processing image inputs, recursive algorithm design, and beyond - it is imperative to have someone with my depth of experience on your team. Additionally, over the years I have honed my machine learning skills, granting me a unique problem-solving perspective that approaches tasks with both precision and scalability in mind – essential skills for handling massive terrain divisions like yours. My mastery of cloud technologies such as AWS' EC2, S3, Lambda etc., will also be instrumental in designing solutions for into 1x(N+1) image using optimal space storage. Furthermore, having designed table-like tasks before employing VBA within Excel’s environment gives me an unmatched familiarity with designing a visually adequate and comprehensible output for your real estate registry book-keeping needs. I guarantee to deliver high-quality work on time. Let's makeStyles sense for you. Choose me today for commendable outcome and an exciting journey.
€140 EUR in 2 days
5.0 (7 reviews)
3.2
3.2
User Avatar
Hello mariodascalu7, I am Sadat Saeed, with 8 years of experience in Python and Software Architecture. I have carefully read the project requirements. I propose to create a Python program that reads an image file, preprocesses it if necessary, and implements a recursive function to count and identify land patches. The program will return the total number of patches and generate an output image showing the color hierarchy of the patches. Please review my portfolio https://www.freelancer.ca/u/DGM999 and let's discuss further. Best regards, Sadat Saeed
€85 EUR in 3 days
5.0 (3 reviews)
2.9
2.9
User Avatar
As an experienced developer, most notably in Python, I am confident that my skills can be of great benefit to you and Lida in solving this complex real estate challenge. I bring a deep understanding of algorithms and software development strategies, with a particular proficiency in implementing solutions using recursive functions - which is key to addressing the requirements of this project. Let me leverage this experience for you by designing and coding a well-optimized algorithm to count all the patches on the land as well as create the required bookkeeping output image. This will not only save you significant time but also ensure accuracy in identifying all subdivisions and corresponding color hierarchies. I always prioritize delivering clean code with a focus on efficiency and clear documentation. In sum, from my understanding of this project and your needs, I believe that my combination of skills, technical know-how, and adaptability make me the ideal candidate for successfully executing this task at hand. Let's work together towards transforming Lida's inherited land into a well-designed space that maximizes its potential!
€110 EUR in 3 days
5.0 (3 reviews)
2.6
2.6
User Avatar
I can solve your real estate problem by creating a program that divides the land into patches, counts the number of patches, and builds an output image based on the color hierarchy. Let our skills speak for you by developing a recursive function to handle this task efficiently. We are ready to start right now to deliver a solution that meets all your requirements. We encourage you to review our portfolio and feedback to gain more insight into our expertise. We would be more than happy to discuss your project in more detail. Please feel free to start a chat with me .
€140 EUR in 7 days
4.8 (1 review)
1.7
1.7
User Avatar
Hello mariodascalu7, I am Shahzaib, a Python and Software Architecture expert with over 5 years of experience. I have carefully reviewed the requirements for the project regarding creating a Python program for mathematical solutions involving land subdivision and boundary marking. To tackle this project, I will first read the input file using the 'images' library, preprocess the image if necessary, and implement a recursive function to count the number of patches of land in the image. I will then create an output image that encodes the color hierarchy of all the colors used for subdivision. My approach will ensure efficient processing and accurate results as per the provided description. You can check out my portfolio at https://www.freelancer.co.uk/u/theshahzaibkhan for examples of my previous work. Regards, Shahzaib
€100 EUR in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
With my background in electronics circuit design and my sharp skills in using tools such as Altium Designer, Eagle, KiCad, EasyEDA, and Proteus, I bring a unique perspective to this real estate project. Though the project may seem unrelated to circuit design on the surface, tackling problems head-on and finding efficient solutions are at the core of my work. These are precisely the same skills that will be required for implementing this python program for mathematical solutions. Shapes like rectangles can be described using few sets of rules dictated by mathematical equations. With orientation being orthogonal in nature whether one looks horizontally or vertically at the plots allows for quick subdivisions into four subset rectangles. By leveraging on my abundant experience coding mathematical equations including tough ones done using Matlab and Mathematica tools over the years, we can tirelessly call functions recursively creating patterns discerning each land subdivided plot by a different color utilizing (N+1) colours matching different sub-divisions upon completion ensuring hierarchy in encoded colours. The hierarchical ordering which I'll build into your python program will be stored in reverse order with respect to the "visit" made just as outlined in your project description.
€240 EUR in 5 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I can undertake this project. And you don't need to pay. I am a student of artificial intelligence in Stockholm .
€50 EUR in 2 days
0.0 (0 reviews)
0.0
0.0
User Avatar
software engineer with a proven track record of competitive programming. I have won many competitions and with my expertise in problem-solving and data structures, I'm sure I can help you implement what you need in the next few hours. Feel free to contact me so we can start working immediately.
€50 EUR in 7 days
0.0 (0 reviews)
0.0
0.0
User Avatar
Hello, I have carefully read your project requirement, I am sure, I can fulfill your requirement and get desired results. I am ready to start the project right away. Regards, Aman D.
€140 EUR in 7 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ITALY
Rome, Italy
0.0
0
Member since Oct 5, 2022

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.