New to algorithms, where to begin? [closed] - javascript

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I have been struggling as to where to begin learning algorithms because of the insane amount of information out there. I don't have any knowledge on algorithms other than solving a Rubik's cube. I'm wondering what is a good source for a beginner to learn algorithms and if they're useful. I should also mention that the languages I know are PHP, Javascript and MySQL.

Upvote for wanting someting to learn and actually asking.
As #jbarker2160 wrote: Computer-programs are algorithms. If you know MySQLs SQL dialect you might run into the PROCEDURE command. A good example for that.
If you read about Computer history you will soon learn that some early computer programs were nothing else than a series of switch-combinations (on/off) represented by little holes in a paper. Modern programming languages like JavaScript are a high-level abstraction from that "binary" code but deep in their core they still just talk "on" and "off".
Good luck with your programming!

Related

Should I learn javascript again after learning Reactjs? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 1 year ago.
Improve this question
I learned javascript 6 months ago and made many projects to practice it. After that I stop learning and revising javascript as I learned MERN stack. But now I am not feeling confident about my javascript skills.
Should I revise it again or should I continue to learn and practice Reactjs?
You should learn Javascript again if you want to be a good developer. There are 2 kinds of developers out there:
How group - This kind of developer knows how to do things. They know the syntaxes. Then when working on large applications they can't debug things well. They're just copy, & paste experts.
Why group - These people not only know how to do it but also know why the code doing this way. For example, they don't only know what is lexical scoping, but also how scoping works under the hood using a closure.
End of the day, I wanna say, if you only know how to write Javascript, then Javascript seems like a magical thing for you. But if you also know how Javascript works under the hood, you will be a magical thing to Javascript.

Javascript and Priority Queues in coding interviews [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
One pretty big issue I've run into with JS is that it has no in built in priority queue unlike Java or Python (heapq).
I was just wondering in an interview situation, could you propose below solution and essentially 'pretend' that JS does indeed have a native Priority Queue structure:
https://leetcode.com/problems/merge-k-sorted-lists/discuss/10528/A-java-solution-based-on-Priority-Queue
Only asking because implementing a MinHeap is pretty complicated and not sure if I'll able to do it in a high stress environment.
I think it's fair to assume you can use an npm library to make JavaScript have capabilities comparable to other languages.
Google Closure Library has some useful structures implemented in JavaScript.
You can find goog.structs.PriorityQueue here.
Facebook similarly has fbjs.
You can find their Heap implementation here.

Testing performance of JavaScript vs. Python [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
As a high school student, I've recently decided to do a computer science experiment for my school science fair. My hypothesis is that when comparing Javascript and Python on similar programs, JS will perform better on certain common software benchmarking tests. In order to test my hypothesis, I need to write a set of programs in each language that execute common tasks and then test them according to relevant performance benchmarks.
Since I'm new at writing and testing code, I am hoping to get some advice in answer to these questions:
What types of (simple) routines would adequately represent the performance qualities of these two languages?
What specific tests (speed/CPU and memory usage/etc.) would be the best performance measures?
Is there (preferably free) software available to do this kind of benchmark testing?
So far, I've searched Google for general advice about software benchmarking and have found limited practical advice. I just need some initial guidance to point me in the right direction.
Thanks in advance for your tips and suggestions!

Detecting eye contact in image in Javascript [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
I am hoping to develop a way to try to detect if a person is actually looking at the camera in an image (or via a webcam), I realize that any implementation would have low accuracy, but any accuracy at all would be significant. I have found a lot of good examples using the webcam and HTML5.
http://techslides.com/object-detection-with-html5-getusermedia/
I've also found some really useful code in this project:
https://github.com/auduno/headtrackr/
And in this one:
http://trackingjs.com/
But all of these focus on head movement, and facial recognition. Is there any implementation in any language that has any success in this? Or is it basically impossible right now? If it exists in a different language other than javascript, thats ok, as long as its open source I could see how they have developed an algorithm.
We once created a game which tracks your eyes, here's an working example. The eye tracking is not 100% accurate since it was an 24 hours hackathon project :) and it heavily depends on the environment and the person (in dark environments and people wearing glasses or even with asian people the detection doesn't work properly). I think with some tweaks you could achieve great results with it.
We used jsfeat for the eyetracking since it is more performant than trackingjs.
Here is our project on github if you're interested.

What to learn after JavaScript? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
I've recently finished watching some beginner JavaScript tutorials; it's quite easy to understand. I'm trying to look for intermediate ones now, but I can't find any. So I've decided to not waste time while looking for some continuation on my JavaScript journey. What should I learn next? I prefer that which is important, and perhaps, closely related to JavaScript.
It depends on what your goal is, and what you have already learned.
If you want to become a web developer, you should learn some server-side web languages like PHP or ASP.NET.
If you want to become a general developer, it would be useful to know systems languages like Java or C++.
If you want to be a computer scientist, studying algorithms might be a good start.

Categories

Resources