Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Fundamentals and maths required for algorithms

I have been working on RTOS and Linux driver development for quite some time. Now I am interviewing at semiconductor companies and failing to answer questions about algorithms on strings, and time and space complexity. I have not studied discrete maths and algorithms during my as I have an electronics background.

How can I overcome this gap?

like image 570
jammulak Avatar asked Dec 22 '22 22:12

jammulak


2 Answers

Start with something simple like: Algorithms in a Nutshell (good starting point for interview like questions)

alt text

Or Algorithms For Interviews When you feel you know the above book, then you can think of diving into introduction to Algorithms.

like image 154
zengr Avatar answered Jan 11 '23 23:01

zengr


You need to review most of the course material for a Data Structures and Algorithms class. In order to answer those types of interview questions, you don't generally need the material covered in Discrete Math.

If you want to take the long way around (and actually understand the topic), I recommend you actually work through the class material and listen to the lectures. Since UC Berkeley posts some of their lectures online, you can watch just such a class (with an excellent instructor) here:

http://webcast.berkeley.edu/course_details.php?seriesid=1906978343

Pay particular attention to the lectures on Big O notation, and the sorting and searching algorithms. Those tend to be the bits that people ask about for job interviews.

If you can't be bothered to actually spend the 30 hours watching the lectures and many more working through the problems, you should at least consult the book that course uses:

Goodrich and Tamassia's Data Structures and Algorithms in Java

like image 36
Paul McMillan Avatar answered Jan 11 '23 23:01

Paul McMillan