Saturday 8 April 2017

A Star Algorithm


Path planning is considered as elementary task in autonomous mobile robot that allows the robot to find the shortest path from starting point to destination point.  Path planning has evolved with different types of algorithm and has moved from shortest to optimal paths.

Assumptions:
1.We are going to discuss the algorithms on the basis of grid graph, which has identical square shaped blocks.
2. Each block is denoted as node, moreover there is only single starting node and single destination node.
3. The location of starting and destination node is known.

Grassfire algorithm, as by its name, it begins from destination point, assigning each grid a value equivalent to the distance from the destination point spreading like fire in every direction.
It assigns the value '0' to the destination point, and value '1' to all the immediate surrounding neighbors.  
This step is repeated till starting point is assigned a value. Now the path is formed from the starting point to the destination point, according to the reducing value of distance. 
For example: if the starting point is assigned value '10' , then the path is formed in such a manner '10'-'9'-'8'...so on till '0'. 

Grassfire Algorithm is effective for small dimension grid graphs.
But as we increase the number of dimensions the complexity increases and thus we need a smarter algorithm which can find the shorter distance by visiting few and relevant nodes. 


A* algorithm also known as best first search algorithm  is one such algorithm which not only finds the shortest path but does it with less computational time. 

A* algorithm finds Heuristic function. It determines distance between a given node/current node to the goal node.

This information plays a vital role in the A* algorithm to search nodes which are nearer to the goal. 

A* algorithm computes function f , which is:
                                        
                                          f = g + h
where: g: the distance between current node and start node
            h: the heuristic cost  of current node

In every iteration it chooses nodes with the smallest f value or a node which is likely to be on shortest path.
Once node is chosen , f and g value is updated. This process is repeated until we encounter destination node or run out of nodes to consider.

A* is quicker than Dijkstra and Grassfire, due to its consideration of the heuristic distance. 
It might be wrong, but in many cases we can come up with informative heuristics that cause the algorithm to explore more efficiently.

We have coded the algorithm on MATLAB and its video is available on our YouTube channel 'Electro-Bugs'. 
Here is the link:

References:
'Robotics:Computational Motion Planning' course by University of Pennsylvania





4 comments:


  1. I found your blog just a few days ago so I have a lot of reading to do.
    MDX Concepts Gypsum Spray for Bed Bugs

    ReplyDelete
  2. Thank God, From your blog I could complete the assignment. You narrate about star algorithm awesome. Similarly, I am also a service provider. You can get service by visit our website.

    ReplyDelete
  3. WE SPECIALIZE IN FAST APPROVALS
    You can access our Credit/funding facilities from Any location in the world.
    Reply for more information about our credit offer via Email: unitedglobalfinancier@gmail.com


    Are you frustrated or tired of seeking Financial assistance from Bank and different financial organization, have you encountered company with unsatisfied financial services?
    Here is your chance to secure fast and genuine money lending at a very low interest rate. For more information,
    Email: unitedglobalfinancier@gmail.com


    We offer the right solution to your financial needs.We stand apart from other lenders because we believe in customer service, and we stay with you until you get the results you want.In general we offer home finances,car finances,commercial finances,business finances,e.t.c, at lower interest rate of 3%.
    We provide our prospective customer long lasting financial solutions that helps their companies thrive and grow"and also help them to invest and clear you existing debts. Email: unitedglobalfinancier@gmail.com
    Contact us now for more information.


    We are financial builders and we give out loan to everyone ranging from personal, commercial, business financial with our amounts ranging from min 2,000.00 to 1,000,000.00 with a fixed and very low interest rate of 3%. Do you want to own a company? Do you want to own a Home? Is Your Company having financial problem? Do you have a contract/project and need money to fund it? Apply for a financial today and get financed within 3-4 working
    days.Email: unitedglobalfinancier@gmail.com

    Do you need a Loan?
    Are you looking for Finance?
    Are you looking for a Loan to enlarge your business?
    I think you have come to the right place.
    We offer Loans atlow interest rate.
    Interested people should please contact us on
    For immediate response to your application, Kindly
    reply to this email: unitedglobalfinancier@gmail.com

    DO YOU NEED A LOAN : TRUST ME WE CAN SOLVE YOUR FINANCE PROBLEM
    Do you need Personal Loan?
    Business Cash Loan?
    Unsecured Loan
    Fast and Simple Loan?
    Quick Application Process?
    Approvals within 24-72 Hours?
    No Hidden Fees Loan?
    Funding in less than 1 Week?
    Get unsecured working capital?
    Contact Us At : unitedglobalfinancier@gmail.com

    LOAN SERVICES AVAILABLE INCLUDE:
    ================================
    *Commercial Loans.
    *Personal Loans.
    *Business Loans.
    *Investments Loans.
    *Development Loans.
    *Acquisition Loans .
    *Construction loans.
    *Credit Card Clearance Loan
    *Debt Consolidation Loan
    *Business Loans And many More:

    LOAN APPLICATION FORM:
    =================
    Full Name:................
    Loan Amount Needed:.
    Purpose of loan:.......
    Loan Duration:..
    Gender:.............
    Marital status:....
    Location:..........
    Home Address:..
    City:............
    Country:......
    Phone:..........
    Mobile / Cell:....
    Occupation:......
    Monthly Income:....

    Contact Us At : unitedglobalfinancier@gmail.com

    ReplyDelete
  4. I have read all the comments and suggestions posted by the visitors for this article are very fine,We will wait for your next article so only.Thanks! electroplate finishes on plastics

    ReplyDelete