Skip to content

Latest commit

 

History

History
19 lines (14 loc) · 527 Bytes

README.md

File metadata and controls

19 lines (14 loc) · 527 Bytes

10810-DS-Project2

Project2 -- Floor Cleaning Robot @Data Structures by RST

  • bool all_clean();
    check if there is no point need to clean

  • void cal_step_map(Point start);
    calculate the steps from Point start to every point
    steps are saved in step_map[1005][1005]

  • Point find_farthest();
    return position of the unclean farthest point

  • int step2R(Point start);
    return how many step needed to back to R

  • int A2B(Point A, Point B, bool out);
    path of A to B
    if out == 1, output the path