Skip to main content

Types of Algorithms You Should Know



SEARCH ALGORITHMS

DESIGNED TO RETRIEVE INFORMATION STORED WITHIN A DATA STRUCTURE

SORT ALGORITHMS

THIS IS USED TO REARRANGE ARRAYS OR A GIVEN LIST OF ELEMENTS ACCORDING TO A COMPARISON OPERATOR FUNCTION. THE COMPARISON OPERATOR IS USED TO DECIDE THE NEW ORDER OF ELEMENTS 

 GREEDY ALGORITHMS

AN ALGORITHM PARADIGM THAT BUILDS UP A SOLUTION PIECE BY PIECE, ALWAYS CHOOSING THE NEXT PIECE THAT OFFERS THE MOST OBVIOUS AND IMMEDIATE BENEFITS.

RECURSIVE ALGORITHMS

AN ALGORITHM WHICH CALLS ITSELF WITH SMALLER OR SIMPLER INPUT VALUES. THE RESULT IS RETURNED BACK UP THE CHAIN OF CALLS UNTIL IT HITS THE ORIGINAL PROBLEM.




DYNAMIC PROGRAMMING

CAN OPTIMIZE RECURSION. DYNAMIC PROGRAMMING STORES THE RESULT OF SUB-PROBLEMS FOR RE-COMPUTATION, FOR FUTURE USE. THIS SIMPLE OPTIMIZATION REDUCES TIME COMPLEXICITIES FROM EXPONENTIAL TO POLYNOMIAL TIME.

Comments

Popular posts from this blog

How to improve vocabulary ?

Tips to Improve your vocabulary  I don’t like learning new words. But do you know what I don’t like more? Arey…that day, that happened no!!! So, to complete my sentence, I started mixing English with Hindi. There is too much dust no, HAWA mein! You take care krna… But imagine speaking such a broken English in a meeting or in an interview… Interviewer will say…” you agge bado But now I can speak complete sentences in English. My methods are a little different but they have improved my vocabulary quickly and easily and I hope they do the same to you. So in this article, we are going to see 5 ways to improve your vocabulary     Give out compliments to people All of us are facing some problem or the other in our lives, so we are usually sad, angry or tired. In such a scenario imagine if somebody comes up to you and says YOU HAVE A BEAUTIFUL SMILE. It just makes your day. So learn one complement word a day and use it for everybody. Example ...

Dubai ! Tax free still have lots of money?

Dubai  is  the  most populous and 3rd most traveled   city  in the  United Arab Emirates. Even though Dubai does not have any minerals, gold, food still have the power to buy 25 countries. All of this is possible only because of his highness   " Sheikh Mohammed bin Rashid Al Maktoum " As we all know Dubai is a tax-free country So most people think that the revenue of Dubai is from oil, but according to studies only 1% of Dubai's revenue is from oil. But a major portion of its revenue came from tourism. Tourist Attractions of Dubai Burj Khalifa Burj Khalifa  is 828 meters (2,717 ft) high   skyscraper in Dubai  and the tallest building in the world.  The tower was inspired by the structure of the desert flower  Hymenocallis . It was constructed by more than 30 contracting companies around the world with workers of a hundred nationalities. It is an architectural icon. The building opened on January 4, 20...

Why Starbucks shut down in this continent

Starbucks has coffee shops all over the world. There are more than 28,000 locations and 76 markets from Shanghai to Guantanamo Bay and in China. New Starbucks location opens up every 11 hours. But there is one continent that seems uninterested in the hype over the Seattle based coffee chain and that continent Is Australia. it’s proven to be one of the toughest markets in the world to break into, so tough in fact that Starbucks closed more than two-third of its stores on the continent back in 2008. so, what went so wrong with Starbucks in Australia. To answer that let us go back to July of 2000, when Starbucks opened its 1 st shop in Sydney from there it expanded fast. By 2008 Starbucks has 87 stores across the continent. But the problem was that they tried to grow the empire too fast, Starbucks rapidly opened up multiple locations instead of slowly integrating them into the Australian market. when they launched, they launched too rapidly and didn’t give the consumer an opportuni...