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

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...

Top Artificial Intelligence & Machine Learning Channels on Youtube

BRANDON ROHRER channel link:  brandon rohrer TWO MINUTES PAPERS  channel link: two minutes papers SENTDEX channel link: sentdex CODE EMPORIUM channel link: code emporium 3BLUE 1BROWN channel link: 3blue1brown COMPUTERPHILE channel link: computerphile LEX FRIDMAN channel link: lex fridman MICROSOFT RESEARCH channel link: microsoft research HENRY AL LABS channel link:  heny al labs DEEPLIZARD channel link: deeplizard CENTER FOR BRAINS,MINDS AND MACHINES(CBNN) channel link: center for brains,minds and machines STATQUEST WITH JOSH STARMER channel link:  statquest with josh starmer Who is not on the list? Tell us in the comment section some crazy facts-  Orgasm! What happens in the body when you orgasm?                                   Premature ejaculation