Friday, February 8, 2013

Algo from the web and books

What the fuck comes next ?

Short introduction here ... If you are here then I can guess 2 things about you 
    1. You want to learn a few common algo questions for tech interviews 
    2. You don't want to open the books(Cormen et al)

Word of advice when people say dude "Fuckers asked me questions from advanced data structures" ... Don't go and google Data Structures books ... U need algo .. 


Firstly Algos have many parts I would classify them as
1. Lists , Stacks , Queues ,Sort and Search
2. Trees
3. Graphs
4. Dynamic Programming 
5. Really fucked up problems like Travelling Salesman :)


So the following are sites i checked out during my enlightening journey in the world of fundoo algos. I am an Indian from Bangalore , so I don't think I have a problem with any accent whether it is Uncle Sam speaking or Swamiji from India. This is important when I share videos lectures from YouTube.



Lists , Stacks , Queues ,Sort and Search :

http://ftp.tudelft.nl/TUDelft/oilie/Birmingham/Introduction%20to%20Algorithms.pdf

Well , I recommend Cormen for learning about sorting and searching principles. Please go through QuickSort (Randomized one too), HeapSort , Divide and Conquer .

Remember this book doesn't pick any particular language, so I hope you can write code once you know the concept.  You can give the complicated math a miss.

Very Very Important to know all the fundamentals well as the above concepts form the building blocks for the tough problems ahead.


http://www.careercup.com/page?pid=amazon-interview-questions


The above site is simply the most awesome set of questions , a lot of cool code has been written here . I recommend that u stick to questions asked in 2012 only :).



Trees : 


One of the best sites for Trees is GeeksForGeeks . Mostly if you are a fresher going for interviews for paychecks >1 mil rupees, you have to be absolutely through with all questions here . I counted like 3 pages with roughly 16 questions per page . That is like 48 ? .. well some are dumb and some are repeats . So please go on and learn the logic for all of them.


Another thing I have noticed is that not many companies ask you questions about these 

1. Red-Black Trees 
2. AVL Trees 
3. Binomial Trees 

I think it is better to go through it once , but know only the core logic.



Graphs : 


Well this may not be needed for freshers.

TODO :)


Dynamic Programming :

The thing about DP is that there is a concept and then many applications. It is a kinda chapter where the concept cannot be applied easily, so we need to work through all the fucking examples. Please search for the coin change problem :) , famous simple and can be easily applied. 

https://www.youtube.com/watch?v=CB425OsE4Fo

Watch this video for 30 min only till he comes up with the recursive function . Indian teacher and indian Student. Quite nice.


Phd level Interview questions :


Well after all this there are a set of problems which are asked JUST TO CHECK THE APPROACH (what a truck load of crap) . These will not have a straight forward answer. 

https://www.youtube.com/watch?v=e0tGC6ZQdQE

This video is absolutely wonderful , I love the way he explains it breaking it down. You will need prior knowledge of graphs for this.

Other Concepts you should know:

1. String Matching / Pattern searching etc.

There are a few methods that u can achieve this 

Naive

Rabin-Karp

Automata -

    This video gives a little bit of intro into what it automata.
     http://www.youtube.com/watch?v=GwsU2LPs85U

     These are a few practice questions u might want to look at to reinforce the concepts
     http://www.cs.cmu.edu/~tom7/211/fsm1-answers.html 

Knuth Morris Pratt

U will definitely be asked 1 question about pattern search :) . So be prepared. Please read this chapter from Cormen :).


Cool Blogs  :

This dude claims his algo is super efficient please check it out.


Ok Boys , That is it from me
Best of Luck with Algo !
.
.


4 comments:

  1. Hi Buddie,

    What you’re saying is absolutely correct Algorithms Online Resources , but this isn’t the exact situation everywhere. Where most smart folk work on a project - why can’t you do this the Boss asks :).


    I have posted a few times a issue about a couple of resources in my account which can not be deleted through AWS Management Console. No answer up to now.

    Thank you very much and will look for more postings from you.

    Obrigado,
    Radhey

    ReplyDelete
  2. Hiya,

    Fully agree on Algorithms Online Resources . We’re seeing a lot of projects tackle big complex problems but few seem to have taken into consideration and in particular reasons to adopt. AWS Training USA


    I have a simple site that as an S3 static front end and a simple backend in lambda.The backend processes frontend forms. All it does is put the data in a database and sends an email to the administrator.


    Once again thanks for your tutorial.

    Grazie,
    Radhey

    ReplyDelete
  3. Selamat Petang,


    Zoooooooom! That’s how speedy and easy this read was! Looking forward to more of such powerful content on Algo from the web and books

    I recently transferred my domain to AWS with the express purpose of hosting a website (in s3 bucket) and using workman etc. The domain was transferred successfully after adding the GANDI IPS tag from my existing providers. AWS Training USA






    Awesome! Thanks for putting this all in one place. Very useful!


    Grazie,
    Ajeeth

    ReplyDelete
  4. Hiya,


    Fully agree on Algo from the web and books. We’re seeing a lot of projects tackle big complex problems but few seem to have taken into consideration and in particular reasons to adopt. AWS Training



    I have a simple site that as an S3 static front end and a simple backend in lambda.The backend processes frontend forms. All it does is put the data in a database and sends an email to the administrator.




    Once again thanks for your tutorial.


    Grazie,
    Ajeeth

    ReplyDelete