GithubHelp home page GithubHelp logo

qq258 / ball-in-box Goto Github PK

View Code? Open in Web Editor NEW

This project forked from renshuhuai-andy/ball_in_box

0.0 1.0 0.0 54 KB

week1 homework for software engineering 2018Spring

Home Page: https://github.com/RenShuhuai-Andy/ball-in-box

Python 89.60% Shell 10.40%

ball-in-box's Introduction

this repository is used to store homework for software engineering 2018Spring 
members in this group:Shuhuai Ren,Junao Liu,Zhenyu Zhou,Xiaohu Luo,Guanhua Zhao,Xingyu Zhou,Xiaoyang Qi.

********************************************************************************************************************
week1:

Warm-up Project:
In a box bounded by [-1, 1], given m balloons(they cannot overlap) with variable radio r and position mu. And some tiny blocks are in the box at given position {d}; balloons cannot overlap with these blocks. find the optimal value of r and mu which maximizes 
sum r^2.

Tasks:
found a team of 7.
write a user story.
break down the user story to tasks.
be familiar with git.
think out your algorithm to solve the problem.
write down your test cases.
start to code with Python.
use git to store your coding progress and document.


算法:box预设的长和宽的范围都是[-1, 1],长度均为2;因此,每行取长度*100个点,每列取宽度*100个点;这样总共就有2*100*2*100个点,把这些点都作为圆心;
算每个圆心到障碍点的距离,取每个圆心对应的最短距离,作为每个圆心对应的半径;将所有的最短距离求出后,取最大的m个,这样就找到了m个满足条件的最大圆


********************************************************************************************************************

ball-in-box's People

Contributors

anonymous-knight avatar liujunao avatar luo4694956 avatar oneprogramape avatar qq258 avatar renshuhuai-andy avatar sensior avatar zhaoguanhua1998 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.