Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Search - "algorithms"
-
This guy is the best coworker ever. He analyzes my algorithms, advises me when to eat or take breaks, and reminds me not to take life too seriously. He's pretty helpful with debugging too.11
-
Found this site today and want to share it. Algorithms explained Ikea style.
https://idea-instructions.com11 -
On a serious note, most developers really don’t code complex algorithms all the time. The bar for interviews is way too high— to the point that most people get discouraged from pursuing a career in IT.17
-
Today I discovered MIT OpenCourseWare.
I hate university, and I usually doze off during lectures, but my god, I've been listening to "Introduction to Algorithms" for about 6 hours now, and I'm hanging on to every word.9 -
If you like Google algorithms better, you can always just precede your duckduckgo search with !Google
Returns an encrypted Google search8 -
Was recently phone interviewed by a recruiter that asked "So do you know data structures and algorithms?" I replied "That's like asking someone if they know Mathematics - can you be a bit more specific?"7
-
"They used coding AND algorithms"
Wow I didn't know that you can use those together!
Source: reddit4 -
Our Algorithms and Data Structures lecturer would have died on the spot if you showed him code like that...11
-
Protip: appending ", dammit" to your Google searches tells their NLP algorithms that you need more relevant results6
-
Interviews for developers should say: This is an error on production. You have 10 min to find the solution on google.
This is more efficient than making developers write algorithms.7 -
By learning the basis of things instead of just using them.
for example I learn cryptographic algorithms behind ssl instead of just using it.6 -
This is simply beautiful. Visualized sorting algorithms using colors.
Just discovered it on twitter (@galka_max)
If you have capped mobile data, search for WiFi first. Could be pretty much data...
Watch them here:
https://m.imgur.com/gallery/voutF
The videos and gifs pretty much disable any compression technique.
Attached is their merge sort example heavily compressed from 16 to 5 megabytes to fit devRant's limits...3 -
when you screw up at a coding interview because you couldn't remember an algorithm you havent used in 7 years.4
-
I want to thank every Indian computer scientist on Youtube. Because of these guys I passed my Algorithms and Data Structures Exam.10
-
Come to a festival they said.. .. It'll be fun they said.. Here I'm ranting and reading machine learning algorithms under a tree, while others party. Omg.7
-
Just read that EU may planning regulating Algorithms...
What the fuck? WHAT THE FUCK?
They want that programmers make their Algorithms public accessible for transparency and say what algorithms are allowed to do, because people are scared of them?!
MY BRAIN HURTS AFTER THAT FUCKING GENERAL DATA PROTECTION BULLSHIT THEY WANT TO REGULATE HOW OUR PROGRAMS SHOULD WORK?!
AHDHSHSJSDHJABDJS SHDNSBDBSNSN *RAGEQUIT*27 -
Crowdsource let's you improve Google's algorithms by manually identifying items. I helped the world today by making sure "sex" = "sex"4
-
Einstein :" Insanity: doing the same thing over and over
again and expecting different results.
Me: O yeah? Try nondeterministic algorithms3 -
Algorithms strike again :D
By the way I really much agree on both rants. People asking questions that they not even once typed into Google. Disturbing my workflow every 5 minutes...1 -
I hate bullshit metrics, they are everywhere.
- 90% unlimited downloads (not unlimited then is it, dickface)
- you are 53% more likely to be noticed with a pro account (yeah, because you fucked with the algorithms)2 -
The index to Sedgewick's Algorithms book says:
recursion, 35
see also base case,
see also recursion1 -
Can anyone recommend good books for coding algorithms?
Any tips and tricks would also be helpful. Thanks.11 -
Computer science students and data scientists rejoice, "All algorithms" implemented in many common languages:
https://github.com/TheAlgorithms16 -
I've been coding for over 8 years, and whenever a recruiter says we have you do these coding challenges or recite them an algorithm from memory, I say "You know, the longer you've been programming, the less you remember how to do this stuff, because you don't use it in real life." They say, "Well we just want to see how you think and how you solve problems." B.S.
These types of algorithmic programming challenges besides the simpler ones don't show how you think. A lot of stuff like the dynamic programming and other optimization problems were solved by phd professors after many years of research. Nobody would think up these solutions on their own.
These programming challenges weed out
experienced developers unless they want to
take the time to re-learn this stuff. It explains why google, facebook or amazon are filled with young and inexperienced developers and how come it takes so many thousands of them to get anything done, and they still have buggy products...23 -
My Data Structures and Algorithms sample midterm exam's instructions mentions "No Morse Code allowed"2
-
'Yay!! My program runs and is giving expected output.'
** Professor gives large input file **
Segmentation fault (core dumped)
'FML'
(My story in every algorithms lab)5 -
Today during my Algorithms lab, the guy sitting to my left began digging his nose like he had buried treasure there. 🤢
Oh how I wanted to smash his face on his keyboard. 😭11 -
Could you imagine a guy who takes A4 paper with encrypted text using modern algorithms and decrypts it in 20 minutes which pen and his mind?4
-
When you don't want to explain what you've done with application's code base so you play the "algorithm" card.
Boss: tell me about the new release.
Me: updated the search algorithms boss.
Boss: cool. Release!
Me: 😎 -
This is documentation at a noob-program level. We had this one teacher, who shall remain unnamed, who used single letter variable names everywhere, who couldn't understand his own programs when they were shown to him.
PS - The picture attached is supposed to be an implementation of Kruskal's algorithm. Don't ask me what the variables mean.14 -
Had to hand in as assigment for my algorithms & data structure course and really put alot of work into it, commented code, easy to understand and all.
"Why are you showing me copied code from the internet?" was the professors answer...
I did not copy any code and some algorithms often look the same...6 -
After watching Mr Robot, I installed Kali and learnt to hack WiFi passwords via brute force. Was utterly disappointed that, most crackers just use prebuilt tools instead of developing their own algorithms and programs.14
-
I got ranted,by our teacher in algorithms lab, because I was compiling the code using terminal and was not using torboC (there wasn't any IDE installed on the system) 😃1
-
Diving into genetic algorithms right now (its 4 am), am i just a rare specimen or is this not hard at all?2
-
Yesterday I pulled 36 straight hours of coding compression algorithms. So help me god, I never want to look at another... Until I need to continue next week. ¯\_(ツ)_/¯3
-
Had my algorithms and data structures lab this week... 6pm-9pm
No one sat next to me or talked to me... probably cause I’m the only girl in the class :/11 -
Got introduced to RLE on a rant the other day and holy shit doing more research into it and it's algorithms... How the fuck have I not known of this?!?!?!2
-
I'm making a renderer but I can't work on it right now so I'm reading about different algorithms and stuff and I'm so hyped to carry on with it tomorrow - such a fun project!9
-
Don't you hate it when politicians and newscasters talk about Google's, Facebook's, whatever's algorithms without really knowing what the word "algorithm" means?
A few years ago, only few people knew the word existed, and now you find people going around, saying things like:
"I don't know why YouTube recommended that video to me. 'Their algorithm' must be mad."14 -
My last successful project was a small project I did together with my gf in javascript. She needed to make some algorithms for school for transfering
freight containers and picking them up. I made some visuals and buttons for her to press. And she added a file with algorithms based on the helper functions I created. such as: GetFirstEmptyPosition() or PlaceContainerAt(x, y)
She learned a bit of programming. And I learned a bit of javascript.5 -
Learning neural network algorithms and feeling very accomplished........
.......then checks out OpenCV and flips desk.4 -
OpenSSH 8.2 is out. This release removes support for the ssh-rsa key algorithm. The better alternatives include:
1. RSA SHA-2 signature algorithms rsa-sha2-256/512. These algorithms have the advantage of using the same key type as "ssh-rsa" but use the safe SHA-2 hash algorithms (now used by default if the client and server support them).
2. The ssh-ed25519 signature algorithm.
3. ECDSA algorithms: ecdsa-sha2-nistp256/384/521.
In this release, support for FIDO/U2F hardware tokens. Also noteworthy, a future release of OpenSSH will enable UpdateHostKeys by default to allow the client to automatically migrate to better algorithms.19 -
At the University, Algorithms class, exercises lesson..the assistant explaining the results of an assignment:
"Because here..if we use a classic 'if-else' loop..."
😳1 -
So just finished my last algorithms and data structures class frequency, feeling pretty confident about the grade, today it'll be all weed, pizza and sex. Life is good :')2
-
We all make Blue Prism the receving end of our jokes and that's actually very unfair, they even developed their own sorting algorithms, fuckYouSort, and that's something I want to acknowledge.2
-
That feeling when recursion finally "clicks", and you begin instantly identifying candidates in your code for recursive solutions.20
-
OK, end of massive fucking 1 year long Dunning-Kruger wave. Time to learn C and algorithms. Looks like I'm Learning the curriculum in reverse order but nothing too bad.3
-
Can someone recommend me some good js readings ( algorithms / pure js / no framework related ) ? I just discovered this website: http://www.thatjsdude.com/ and I want more ...4
-
So in my last post I was angry that I didnt know many algorithms or how to make one, so you guys inspired me to learn about them and I found a course I'm gonna take about algorithms and such. I'm incorporating it into my learning schedule so let's hope this leads to me not being stupid.3
-
http://ai-junkie.com is a brilliant website - it's finally allowed me to understand neural networks and genetic algorithms properly!4
-
I just wrote unit tests for like the first time in my life (didn't find it useful in university, someone else handing in the project always did that). It cut my coding time by a factor of 3! You should try this one if haven't already, it really saved me a lot of headache right now.2
-
For starters this is my first post, found devrant the other day you're all hilarious.
I hate math, I hate proofs. I'm in a class "Analysis of Algorithms" and I have understood and do understand the importance of optimizing algorithms and data structures and I understand the algorithms and data structures themselves. That being said, I'm fucking sick of math and proofs and all this bullshit that is probably pretty important but ugggghh, I guess I just have to push through, but writing this out helped.14 -
I was all happy using and applying Machine Learning algorithms until I came to do a Research Internship and now I'm sitting in the lab studying Linear Algebra, Probability and Statistics the whole day just to cope up with the guys who are improving and developing algorithms here!11
-
Trying to switch my job. Applied for a well known company. Gave an interview today. I don't fucking get the obsession of these developer recruiters so fixated on data structures and algorithms. I know it's a massive part of computer science but guess there is no fucking room left to innovate in there. There are legitimate researcher teams working for implementation of these barebones inside system foundations. No general software developer gives a fuck about this piece of shit discipline of study. You wanna know why they propagate this as the panacea to test people because it's fucking easy. Give a project to somebody as interview procedure, it'll take time to bring out an interesting problem and an interesting solution to that. Sorry to say but all these data structure enthusiasts are nothing better than board game enthusiasts.
Also why can't you refer existing solutions to create your solution. I've seen some good problems which actually require you to think. But again those are heavy and can't be tested so you're left with reversing a fucking linked list with O(1) auxillary space. Fuck me ig.
Moreover, what the fuck is wrong with the moral policing internet crowd. Its so sad. I've hardly seen anybody rant about this piece of shit system put in place to push the absolute dead-end nutcases up the ladder. Every other search for it returns a Quora link with some Indian guy complaining about his interviews and in the comments you have the same scholars sitting in their data structure throne imparting knowledge about how data structure holds the fabric of reality together.
I don't hate data structures and algorithms as a subject. It is cool and quite extensive but once you try to make that as a metric of all the knowledge in the world, you've lost my drift. Maybe I'm just angry with the state of things. Maybe I'm just angry with token Quora crowd.4 -
Last night me and my friend were on a WhatsApp call discussing how we should practice algorithms and data structures more. We texted the logistics after and he sent me a calendar invite on google. I swear to god this morning I had adds talking about data algorithms all over YouTube but I have never googled this issue in the near past 🤔 this can’t be a coincidence...9
-
Ok apparently I forgot rants can only be edited within the first 5 minutes, I thought it was 30, and you can't rant 2 times in 2 hours so I'll have to wait before posting this.
So, I'm doing a Genetic Algorithms class, something I liked since I was 15 yo and didn't know shit about coding, but I loved the carykh videos about it. (here is part 1: https://youtu.be/GOFws_hhZs8 )
The yearly class consisted of 3 little projects to be able to do the final exam and an investigation project to pass the subject without a final exam.
We had to make teams, and I got together with 5 more people.
I have a lot to say about these 5 people, but the only thing I'll say is that I was the most experienced programmer among the 6 of us, if they had any experience at all. Mind this is a third cycle class.
We were allowed to use any technology, as long as we wrote the important algorithms by hand, of course.
The development of the first project was such a mess, that one of the members left the subject.
While developing the second one, we were given the topic for the investigation project; fractals.
It took a lot for us to find an application of fractals where we could use genetic algorithms. Once we found it, fractal antennas, we had to learn about antennas, so we interviewed professionals, and such. We ended up learning to evaluate antennas.
We also found a site that used some parameters to generate fractals, we had the parameterization.
We just had to code it. It was July and we just had to code it by October.
We were 5 people, and "we" were so busy writing the little projects, we fucking couldn't finish the investigation project.
We just had to write the proper algorithms and GUI specifics, without even having to write boilerplate (we used the first project as a template), and they still took so much that we didn't have time for the important project.
That sucked, because I had been coding and investigating in many weekends, I spent countless hours on them, I had to pause development on other projects for these ones; and after all that we have to do the (very shitty) final exam.
Since May, the average people together "working" on the different projects was 2.6. And 100% of the time, I was one of them.
We tried to speed up things in the last months but even with the deadline on us and the project not even started, there was no time we all got to work together.
Dude projects don't just get made, someone has to develop them.
It's so sad we had the project ready to be made and 5 people couldn't finish it. There was so little to do to pass and yet these people couldn't.
I guess it's my bad too. I wish I could rush the project in a couple of weeks, but unfortunately the guy with a job and 8 other subjects can't.
You can find the project in my GitHub. I'll do a requiem of what it was to be one of these days, after I catch up with all I left aside for this subject...rant genetic algorithms project systems engineering failure subject college investigation fractals wk2833 -
Things that make me mad in school: when "ap computer science" is a class that literally just teaches you Java syntax and nothing about any theory and algorithms. Like c'mon3
-
I always feel inspired by programming when I create some algorithms or programs which I can use when I need to.
Small utilities and command line programs r what I make at times... and I also enjoy trying to implement them awesome algorithms 😍
However, most inspiration I get is from looking at C code though ( especially the Linux kernel... that code is SO clean 😍😍 )2 -
Due to the constant change in accuracy of my keyboards' predictive algorithms, I now find myself switching between SwiftKey and GBoard... 😢😔
Anyone else feel the same?6 -
I haven't touched algorithms for many months but needed to create a matching algorithm today.
It has to match using variations of the original key and output the keys that can't be matched.
The feeling in my head felt like I was turning rusty gears n sort of just stumbling through...
I used an N^2 approach but afterwards it just felt wrong... And it took me like an hour of hacking to do it....
Actually I just realized it's an N approach! because all possible matches would be hit by iterating from one of the lists of possible names!
I suddenly feel so proud of my subsconcious...
But still something doesn't feel right...1 -
Fellow Deviants, I need your help in understanding the importance of C++
Okay, I need to clarify a few things:
I am not a beginner or a newbie who has just entered this community...
I have been using C++ for some time and in fact, it was the language which introduced me to the world of programming... Before, I switched to Java, since I found it much better for application development...
I already know about the obvious arguments given in favour of C/C++ like how it is a much more faster and memory efficient than other languages...
But, at the same time, C/C++ exposes us and doesn't protect us from ourselves.. I hope that you understand what I mean to say..
And, I guess that it is a fair tradeoff for the kind of power and control that these languages (C/C++) provide us..
And, I also agree with the fact that it is an language that ideally suits our need, if we wish to deal with compilers, graphics, OS, etc, in the future...
But, what I really want to ask here is:
In this age and times, when hardware has advanced so much, where technically, memory efficiency or execution speeds no longer is the topmost priority... These were the reasons for which C/C++ was initially created...
In today's time, human concept of time matters more and hence, syntactical less complicated languages like Java or Python are much more preferred, especially for domains like application development or data sciences...
So, is continuing with C++, an endeavour worth sticking with in the future or is it not required...
I am talking about this issue since I am in a dilemma about the use of C++ in the future...
I would be grateful if we could talk about keeping AI, Machine Learning or Algorithms Optimisation in mind... Since, these are the fields in which I am interested in...
I know that my question could have been posted in a better way.. But, considering the chaos that is present in my mind, regarding this question doesn't allow me to do so...
Any kind of suggestion or thoughts would be welcome and much appreciated...
P.S: I currently use C++ only for competitive programming or challenges...28 -
Been watching some videos on Algorithms and my mind bleeds. Do people who know this stuff really calculate complexities for each method they write?6
-
Algorithms teacher: I don't know how to work this thing. (computer) ... Students constantly have to go up front and help him do basic computer stuff. Even worse, he types with two fingers! Why education system must you suck so bad???6
-
Yesterday, while I was studying for an algorithm exam, I realized I used induction on trees in a wrong way for six months.1
-
I know this sounds odd, but I really find algorithms things of delightful beauty.
A creative solution to some very deceptively complex problems.
Sure, some implementations aren't the best, but seeing them after just makes me appreciate the time and effort that must have gone into designing things like Merge Sort, Binary Search, Greedy Algorithms, BST, and Dijkstra's Algorithm.
So! If your code is unoptimal, looks terrible, or is a sheer abomination, take a moment to appreciate the little piece of art you've made before you go and make it better.1 -
I’m stressing out man. I can look at let’s just say a sorting algorithm for now. I can look at that insertion sort and I can understand what’s happening, but if you were to tell me I was supposed to be able to write that just based off a description I couldn’t. I need to be able to design and understand algorithms but I don’t know where or how to start. There was some course I was gonna try and see what that does. I put aside JS completely to focus on C# but I’m just stressing out over here. I learned the basics of C# although I feel like I’m learning it wrong but I’m moving on to SQLite and it’s my first Database experience and it’s confusing me and I also don’t know how I’m going to be able to use it for my future applications yet I’m just expecting too much out of me idk I love programming but sometimes it’s a cruel mistress13
-
Anyone else think all this stock market volatility is just a whole bunch of algorithms going crazy?22
-
I have a problem to solve but I just can't come up with any working algorithm or idea to solve it. I feel really fucking stupid right now
-
bubble sort
promotion sort
quick sort
school sort
heap sort
hr sort
merge sort
sex sort
selection sort5 -
Google's algorithms seem to act stupidly on purpose so we are mistaken to think we have nothing to fear from artificial intelligence.2
-
When you show the client the comprehensive administration system they ordered but their young female HR leader is "more into pictures than tables".
-
~learn react enough to make a full-stack web app
~learn Flutter
~get good enough at data structures and algorithms to pass a fucking coding skills test -
is it normal that i go to the 2nd best cs college in my whole country, also ranked in top 200 colleges globally in the world, and they don't teach us anything about algorithms?4
-
1. Study C and Python
2. Learn NLP and ML
3. Participate again in one hackathon and kick their ass after winning it
4. Get one awesome internship
5. Master algorithms and DS -
Class about to end, instructor announces quiz. Looks at friend, sees him opening up algo app on his phone playing all algorithms in simulation mode 😂
-
For now on I am just going to say I am a Psychologist... for computers. And my algorithms are what shape the behavior (:
-
To the one who did a degree:
How mush do you use the algorithms you've learnt in the college/University?14 -
That moment, when you meet someone who haven't written even a simple if-else statement in their life and want to work on Deep Learning algorithms using TensorFlow. World is filled with so many ML crazy peoe.1
-
Me(the first day fo spring semester): Data Structures and Algorithms shouldn't be too hard of a class! This will be interesting!
Me(a couple days into class): I don't understand anything she's saying and the programming problems are in some pretty rough English...why me?!?2 -
In an algorithm class, professor introduced us to some simple search algorithms (bubble sort, selection sort, insertion sort, shell sort). He did a quite decent job and most of the students were able to grasp the code and understand the differences in those algorithms. But then he spoiled his whole lecture with one additional slide. There he proposed an optimization: Instead of using a temporary swap variable, we just could use the first array element (or the zeroth element, respectively: the one ad index 0) for doing all the swapping. We just had to document that, so that the caller would "leave the first position of the array empty", resulting in "cleaner code". And he did that in the same class where he used Big-O notation to argue about runtime complexity. But having the caller to resize the array and to shift all the elements by one position did not matter to him at all, because it was "not part of the actual algorithm".2
-
What do you guys think about people who call themselves programmers after learning few technologies from Onlinecourse’s . I don’t want to call someone programmer who doesn’t know very important and useful concepts called data structures and algorithms.2
-
Do you think one may become a good programmer or coder without excellent knowledge of mathematics or algorithms?5
-
I will have to present some algorithms at our school festival next week.
Any idea for a good real world example to demonstrate how breadth first search works?3 -
Anyone else like... REALLY bad at algorithms and logic stuff?
I just hate them so much.
Tell me to build something and gg done. But all these tests for jobs freak me out.
Like. It probably ends up being something simple and when it's explained I know what to do but at first I just instantly shut down and can't think.5 -
Fuck this algorithms course. How the fuck do you expect me to populate a 2d array of N^2 elements with data in linear time if you won't fucking let me write to more than one element at a time???
Dear CS department,
Make sure your homework makes fucking sense before shipping it off to students.
Regards,
A pissed off student
And before anyone comes at me with this "But you can technically do that if there's k*N elements and it would still be linear time" shit, fuck off; there's a worst case of needing to write to half the elements in the 2d array so it's still N^2 no matter how you try to "but technically" your way though it.3 -
Popular opinion: AI is nothing more than complicated algorithms that no one appreciated before and probably never will. 99.9% of all coding would be AI if mainstream media had their way.5
-
Got rejected in an interview today, because I lack knowledge in Data Structures and Algorithms. 😔😞
I guess I'll have to bursh up my Algo skills again.3 -
Reading CLRS ~> Spend half hour reading how to cut rods to profit the most... I love Algorithms 😍😍😍😍
-
A music server where people can login and add their own music to channels, with request lists and priority lists algorithms. Welp atleast the streaming part is done4
-
My week was going great, started an online course on coursera.org. It was on algorithms, somone recommended it to me here. After spending like an awesome 3 hours learning about dynamic connectivity algorithms, I find out I have to submit code in Java!!! If you hate Java then u get me, then there's a deadline, OBVIOUSLY!!! I only know the basic Java syntax, can't even believe I got this far without coding a project in Java. So now I have to polish up on Java and write a percolation java project, no biggie!4
-
Just downloaded a thesis template with a title "Improved algorithms for the cultivation of lettuce on the coastal plane"
-
What could possibly be wrong with me if I had to look at almost every single answer of the Basic Algorithm Scripting exercises on FreeCodeCamp? I spend days tying to solve some of them and just couldn’t. Had to look at the answers. Then I try few days after and maybe remember half of the answer. How can I change this?3
-
Wish me luck, I'm returning back to Uni after a months long hiatus. Algorithms, Node and rest API awaits me 😓2
-
I recently read that great programmers care more about algorithms than code. I hope I can find more time to devote to learning algorithms than spending it on yet another framework. #springboot.js1
-
I got interested in crystallography. Looks like there are lots of interesting algorithms there that could be potentially reusable in development.3
-
anybody ever work with ProjectQ or QISKit? I'm doing a project for my algorithms class on Shor's algorithm, and I'm trying to find a guide for an implementation.
-
Did you know that "Bazmd" is an Indian name? I use it because it's an abbreviation of my real name. (Yep! Dr Baz).
It's just a coincidence, I used to wonder why algorithms would infer that I was Indian.
The algorithm: "Here I am with a brain the size of a planet and they ask me to pick up a piece of paper. Call that job satisfaction? I don't.".9 -
MY GENETIC ALGORITHMS INVESTIGATION PROJECT. I WANTED TO RANT ABOUT THAT SO THIS WEEKLY RANT IS PERFECT. I can't write the whole rant rn, stay tuned.5
-
Data Structures professor enters class, today's topic being RBTs. He opens slides, forgot to redact the name and university from where he blatantly copied it from. Continues anyways. *Facepalm*6
-
https://en.wikipedia.org/wiki/...
Is probably one of my all time favorite algorithms. It's really beautiful.
Whats your favorite or 'most beautiful' algorithm?10 -
Theil–Sen estimator, my new favorite alternative to least squares regression:
https://en.wikipedia.org/wiki/...2 -
Do you guys also feel difficulty when you try to write algorithms in the new language? I feel like I am stupid cause I don’t event know the methods for coding the algorithms which can be easy with the language I already know4
-
Guys I heard a rumor that you like riddles, I'm stuck on my theory project and I'd like to throw a bone:
Say you have a list p = [7,6,2,3,4,5,1,0] and you want to order it, i.e. change it to [0,1,2,3,4,5,6,7], by swapping adjacent elements. Provide an algorithm to do this optimally, when:
a. (Warm-up) each swap costs 1
b. Swaps weight is [4,3,2,1,2,3,4], i.e. if you want to swap position 0 with 1 it'd cost 4, position 3 with 4 will cost 1 and so on.
The optimal overall cost for b is 50 (I did an exhaustive search), however you need to find a general approach which is able to order every list with minimal overall cost (no time constraints as long as the solution is not exponential in the list length), using the provided weight function.
(you get a credit if the solution goes to a paper or anything 😉 it's actually a computer science open problem, but seems possible to me)16 -
What do i do?
I worry about problems that don't exists yet. Look for breaches that are not made. And am pissed off at things that are slow but I've never used them. -
https://youtu.be/kPRA0W1kECg
Sorting algorithms visualized & represented by audio. You definitely need to watch this!4 -
"Oh, you only know 10% of how these algorithms work? You're now the subject matter expert, so you get to write the code"
-
My first series... now off to work. Let me know your thoughts and if I'm right... or way off
“What I Learned From Studying Algorithms and Data Structures (AlgoDS 1)”
https://medium.com/@allanx2000/...3 -
Just bombed my first quiz in Data structures & algorithms on induction. Fuck.
And the midterm is a week from today.3 -
Who are you going to hire in web dev position?
1. Algorithm master but new to web development.
2. Full fledged with cutting edge web dev technologies but don’t know much about algorithms12 -
Oh god, here comes another math post! I can feel it coming on, like werewolfism during the full moon.
I'm only passingly familiar with logarithms, so this, like everything I've stumbled on, has probably already been discovered, but
n/(1/((n^(1/n))-1))
Is a pretty good approximation (within a couple percentage points, or three or more digits) of the natural logarithm for all the numbers I've checked it on.
For example if
n = 690841693
ln(n) = 20.35342125707679
while our estimate using the above formula comes out to:
n/(1/((n**(1/n))-1)) = 20.353421612948146
Am I missing something obvious here, and if so, what?
Am I doing the idiot savant thing again, or am I just being an idiot again?10 -
Heyy friends :-) Milo here once again, i hope everyone is having an absolutely amazing day as always and I really hope the upcoming week ahead brings everyone the best ☺️.
So I have finally managed to hand in all my major projects for my semester last Friday (yay less stress 😅) but tomorrow i have a final presentation to do (wish me luck 😅) ... boy am I nervous, but as of right now I’m just going over my slides ahah 😄.
So in my free time over the next couple of weeks I’m really planning on gaining a better understanding of algorithms , I’d love some input from
Anyone and any advice I’d highly appreciate!, currently i have a book called introduction to algorithms third addition sitting on my desktop and I’ve been reading some of that 😃..
So ladies and gents, once again thank you for taking the time to read my
Rambling and long post.. i just have a habit of rambling on 😄.. my bad , once again - thank you!
Milo 😃❤️13 -
I just learned C and I have created some projects like Parking System and Library Management System. My problem is I don't know mathematics and I want to learn DataStructures & Algorithms and become pro in it. In the whole September I will still be focusing on C and create more projects. I have started learning Mathematics today from High School level to College level. I thik maths will take 1 year to complete. After September in the October I want to start learning C++ and finish C++ till the end of Dec 2019. I want to know that do I have to first finish my maths learning which will take 1 year then I should start learning Data Structures and Algorithms? As I said I want to become a professional in Algorithms. I think its not possible to learn DS&A yet I have to wait 1 year till I finish learning my Maths. I can't do more with C & C++ without knwoing DS&A? If I started learning DS&A with C++ in the future then I can't become good at algorithms? I want to do competitive programming and be at Top 1 of Hacker Rank and other sites like this.7
-
I remember when I first heard about the general concept of a stack, I wasn't quite sure how you would use it.
Now im learning about stacks in java algorithms class as well as learning about how the memory stack works in assembly class. This probably seems small to you pro devs, but ngl, it kinda blew my mind how useful this structure can be.1 -
I am preparing for InoI( Indian informatics Olympiad ). Any tip would be helpful. I am gonna use Java. What algorithms and data structures should I focus on ?4
-
I don't know about you, but ever since I joined devrant I started learning JavaScript frameworks (because everyone talks about it) but I gotta tell you I am not a fan: I prefer programming algorithms and solve ctfs(deep into this). Who's with me?1
-
I know how to code. I am good at coding, algorithms, datastructures. I have also been using linux since 4 years.
But still I am not a programmer. I work on excel in office.1 -
!rant
Just read a really neat breakdown of approaches for auto-suggestion, covering n-grams, tries, and more, by a guy working at Etsy.
This is what I do with my days off apparently.
If you want to read it you can find it here:
https://medium.com/related-works-in...1 -
I made a serious mistake that is to start directly a programming language without mastering the algorithms, because finally, without a good knowledge of Algorithms we will never be innovative in this field, that's why I reinitialize myself and I take a step backwards to start the algorithms right and master them well.
Your advices please. -
At an interview, interviewer keep on hitting me with theoretical questions, why python don't have switch cases, what is default sorting in java etc... I told him I don't bother about theory, then this conversation happened.
I(Interviewer)
I: do you know time complexities?
me: Yes
I: okay, tell me a few sorting or searching algorithms which have logarithmic complexity?
me: binary search (with loud and confident voice)
I: he told, in worst case it will have O(n) tell me any other
me: *thinking*
I: what are you thinking? what is time complexity of merge sort
me: O(nlogn)
i: it's logarithmic.... -
I have an exam of DAA (Design and analysis of algorithm) today. There are so many algorithms to remember. My head is about to explode.8
-
I just realized my male brain is horrible at multithreading. ++ to all womens and their amazing algorithms and capabilities 😘9
-
What's devRant getting into this weekend?
I think I'm going to jump back on algorithms review and finish this deep dive into docker.3 -
i thought of a way to implement a stack using two queues, but then i searched on the internet and, as always, found a better version there - using a single queue... will there ever be a day when i can actually think and write those efficient algorithms myself, without looking on the internet? :(2
-
Floating point numbers! 😖
Writing geometric algorithms for CNC machining... you'll find those 10th decimal place inconsistencies real quick!1 -
You can be very good at writing algorithms and good quality code, but if your architecture is garbage, you'll be doing hacky fixes and end up with a spaghetti code.3
-
I hate data structures. I try to work out their algorithms in my head but they're completely counterintuitive. lol.8
-
So many meet-up groups discussing "cool" technologies when I really need is a data structure and algorithms support group.
-
I saw this headline today: "Trending Technology - Google's new AI tool could help decode the mysterious algorithms that decide everything"
Basically, an AI tool to decode how other AI algorithms work...
Congratulations humanity... you done well.2 -
Did you read Sophie’s World? Feels like it’s the introduction to Steven skeina’s Algorithms.
Just why is the question and answer.1 -
I love the logic that underlies algorithm. But nowadays I fear that this is almost disappeared, now programming a software is 5% logic and 95% read system specificactions, documentation, implement third part solutions, think about who developed the system thought it had to be and rant because you don't understand it. I like to solve math problems using algorithms rather than deal with user interactivity, for example. Yes, all this is pointless, but sometimes I miss the exercises that I did at school or in "IT Olympiad"
-
Scientists make theories and engineers make devices but computer scientists make algorithms which are both theories and devices...
-
Studying trees prior to a technical interview tomorrow.
It's so daunting as I'm only recently delving into fundamentals of computer science - I studied something quite unrelated. I wish I could just sit down and build an Angular project...2 -
How do you know ML and AI has gone too far? You rely on the algorithm instead of the obvious.
Google will translate comments, etc. At times when you click on an English video to language around your location. This is so obvious, if I didn't understand English if would not have clicked on the video!!
#BringBackThePreMLdevs -
Does anyone know any algorithms for generating crop circles?
I would Google it but "crop circle codes" doesn't exactly give me what i want.13 -
I was thinking to read some books on algorithm and mathematics required in programming, especially for CP. After some searching I got across some books that are considered great in the field. Among the books, 'Introduction to Programming by CLRS', 'Algorithms Design Manual by Steven Skiena', 'Concrete Mathematics by Donald E. Knuth' and 'The Art of Programming by Donald E. Knuth', in which order should I read them? I've already started reading CLRS as it would be required in my college course too.5
-
Have at least a year long module on Data-Structures and Algorithms. It is the best thing to do for interviews and helps you think like a programmer im general.
-
So sort of following up on my previous post. Career-wise, when do you switch from Exploring (accelerating) to Exploiting (the you got off the pedal and just cruise along)?
Yes I read that book maybe a year or so ago... Perhaps it finally clicked...
Anyone else have any read it, have any thoughts on it?3 -
I was in Chemical Engineering and had a class about algorithms. The teacher barely knew about C but learned some basic programming. Afterwards I switched to Systems Engineering and learned Java. I feel old... xP
-
I had a splash of inspiration. I would like to develop a method for analyzing unknown bitstreams of data. The method would involve determining the format of the data by trial and error machine learning algorithms. This would allow determining data types and byte formats and meanings of streams of data. Could be useful in data forensics. I would call the method: heuristic translation machine learning. I am currently developing code that does this. It will be fun to learn about reinforcement algorithms.5
-
So, to improve my programming I’m going to work or implementing some algorithms in several languages.
For example, Luhns algorithm in c, c++, and c#.
Can anyone suggest a good place to read up on some common algorithms etc that I can try out?1 -
What should I do if I can't get a Leetcode answer?
Should I just keep hammering along and stress myself out until I get the answer, or look at the answer and try to learn from that?
I'm trying to find a new job and am pretty shit at algorithms.5 -
1. I love using it for automation and creation of new stuff
2. I'm a visual thinker and working with abstract things. The process of thinking about a program and developing it is especially rewarding and exciting for me
3. I especially like using it in relation with Maths for algorithms and scheduling, which is tightly related to (2), but also to the fact that I love Maths -
DEVIANTS!! NEED ADVICE...
I have been focusing on learning and implementing data structures and algorithms through participating in competitive programming sites...
Whenever I face an issue and struggle to find an answer (which is more often than not), I ask the forum about the fundamental principles involved in the question...
I avoid looking at the solution, as much as possible.. And, when I do look at them, I still question the author of the code about the reasoning behind a particular section of code which I don't understand...
I don't wish to copy and paste code, but sometimes, I wait for days on end, but I don't use the code until I receive an answer...
Is this the right way or are there any other way which I could implement to strengthen my algorithmic thinking??10 -
Not a rant, just a quick question. If I very little interest in studying algorithms, will I ever be allowed into a tech shop?2
-
I have my algorithms exam a day after so I'm on Hackerearth trying to solve some questions and many questions there explicitly require you to consider arrays to be 1 indexed. I'm like dude wtf? why?2
-
So I have being practicing algorithms again and my biggest issue I realise is understanding the question. Once I have that down, I can draw up a game plan and then go ahead with the implementation then optimise once I have a working solution. However, it's like sometimes the problems are written by children that are way too smart and I just don't get it. 🤯1
-
recently i discovered edmonds-karp implementation of ford-fulkersion method (to solve my coursework problem) and i can't get over how beautifully it works!
-
I am currently going to start data structures and algorithms in python...
suggest me a roadmap according to your experience2 -
Writing my 2. exam tomorrow (1. one just slightly missed minimum of points)
in Algorithms and Data Structures... really want to succeed!
cuddling with my cat to reduce stress😌
wish me luck😅😓1 -
Do you think having a basic knowledge and understanding of algorithms can help you in web development. A friend of mine thinks algorithms will not make you a better developer.4
-
This app is amazing for learning/refreshing your knowledge on algorithms: https://play.google.com/store/apps/...
-
Can anyone help me understand how can I identify Dynamic Programming problem and general framework to solve the problem using DP?
-
I got myself a Kindle last week and bought Randle Monroe's what if, thoroughly enjoying it . Saw someone recommending 'Algorithms to live by' here , I'll be reading that next . What books are you guys reading ?5
-
Algorithm Design Course Assignment: Sort a hexadecimal string using 4 different sorting algorithms, and display each pass on a webpage. Easy enough yeah? Oh wait. Boomer professor wants us to use a canvas based javascript library called P5.js
Why the fuck. would you enforce some random ass boomer ass javascript library on the class, rather than let students choose something they're more comfortable with so they can focus on the core of the project. IMPLEMENTING ALGORITHMS. OR AT LEAST PROVIDE BOILERPLATE CODE?? GAH!!!!!!!!15 -
Intelligent Algorithms do not understand role playing, acting or humor.
Combined with permanent unique identifiers issued by social media companies for so-called "security" and moderation reasons, will systematically cause a wide range of serious consequences.
You can not reason with an algorithm.2 -
How is algorithms still not regulated or monitored?
The shit that sometimes appear on TT or IG is downright fucked up.7 -
TLDR: Opinions of area of interest between these subjects (specializations):
1 Algorithms
2 Programming languages
3 Business analytics
4 Pervasive computing
Hi, I'm about to choose specialisation of my software development masters. I'm almost certain what I'll go with (algorithms), but I wondered what other people thought and would choose if they had the opportunity. I'm still not too experienced in all of these areas, making the choice a bit hard :-)2 -
I had a conversation with a friend.
I : since most modern programming languages handle most of the algorithms like sorting algorithms for arrays / dictionary or finding shortest path algorithms for path location. Do you think it is still important to learn to algorithms and design since most modern programming languages handle those for you.
Friend : Nope, since it’s already available for you why should you care of how they works since they are already embedded in the programming language itself. If you are a computer scientist yes, you must learn those stuff, but if you are an IT graduate or a mere developer you dont need to learn those stuff. That’s why I am confuse in my college days why did we need to learn algorithm and design.
What is your opinion guys? Quite disappointed with his answer.4 -
Tried online assessment for position as SD. Gosh I suck on algorithms. I understand scenarios, but don't know how to write even basic sort. Anyway. This was good experience to open my eyes, what to taught myself.
-
Apparently my superpower is writing exponential time algorithms to solve puzzles and games. If you need someone to write a recursive DFS to solve your shitty word search, hit me up.
-
Do all devs know how to write these Goolgle/Amazonesq algorithms off the top of their heads? ex: build singly linked list from scratch / pre or post binary tree traversals etc..5
-
While programming is imperative (how to x) rather than declarative (x = y) (mathematics), it deceives me from the idea that I won't have to touch a lot of math.
To my dismay, I now realize that in order for the imperative process to be correct, I have to do immense amounts of declarative thinking (algorithms, proofs,..). That which is written has to work.3 -
Just started reading Cracking the Coding Interview and I just can't help but think this whole thing is a joke. The author can't even give a convincing argument why learning algorithm is important for interview. She simply states word for word: it is what it is.
I google her a bit and find that she started her venture Careercup.com and the website is such a joke. How can you even call yourself a software engineer with a website like that. I am pretty sure she using some kind of wordpress engine.
I can't imagine how many people that work at FANG companies that think like her..6 -
Should i go for learning algorithms & data structures before jumping into learning angular... Please suggest I am a beginner2
-
Study algorithms, redo my personal website, start a few side projects, learn some basic DevOps . . .
And so begins the job search, sigh -
Anyone know of algorithms i cam check out to generate a scene with rooms ect. I think the random walk algo is one example but are there more i should consider having a look into?
Thanks in advance1 -
I never finished it, but before I was working in the industry, I was coding through a book called Build Your Own AngularJS. My intent was to have piecemeal instruction/example in TDD and code way above the level of complexity I was used to. You essentially build the core of AngularJS in about 900 unit tests with total coverage. 1000pages long, its no walk in the park.
I gave it up when my time was short, and focused on higher level concepts: building apps, learning tools of the trade.
Now that I am getting plenty of exposure to that level, I am thinking my free learning hours may be better spent going down into the complex worlds shown in this book. A couple of things I found there really stayed with me and shaped how I think about problems. It was also very illuminating to see how complex algorithms work “in the wild”. I cant stand learning algorithms in isolation, generally speaking.
Has anyone seen this book? I know the framework itself is older now, but I don’t think that is much relevant for this learning use case.
I only know of one student who completed this. Took him a few months. He is an absolute machine. -
Hey guys, i'v been working in a company for almost 1 year as a web developer. I only know the basic data structures and algorithms even after this year and also my co workers didn't seem to know graph,trees and other algos like dijikstra and all those advanced algo types. I'm searching for a job with better salary should I have to learn all these to get paid well ? Where even I can apply these things in my job? Is it worth ?11
-
What is your favorite programming language to implement algorithms and data structure?
Or to be more specific, if you write interpreter and compiler, what is your choice of tool?5 -
I don't wanna get bored self studying and learning. Looking for a companion.
Anyone is planning on learning React.js? Or learning algorithms and data structures using any language?
Let's start together at the moment. -
Crush is lyk theoretical algorithms. Just good to thing about. But implementation ... U knw rest of it.
-
Is studying math logical algorithms worth it for an aspiring front end developer? I was wondering how much do you guys use it in your day to day work?2
-
Anyone completed Amazon Online Code assessment? How hard is it recently?
I forgot to code in C, forgot data structures and algorithms. Hope 5 days is enough for prep -
How come when implementing merge sort the mid doesn't need to deal with odd/even division?
I know int will always go down if there is decimal but how will it cover the whole array?
Full code:
https://gist.github.com/allanx2000/...
I guess in general, array indexing that involves dynamic cutoffs always confuse me.
How do you think about them without having to try things out on paper?7 -
Who else has worked with astronomical algorithms using JavaScript? How did it feel? Please share your experience20
-
Is there any way to sort an array in such a way that picking 3 numbers a,b,c randomly from the array and performing a cyclic right shift then place them back in the array??10
-
!Rant
How does one who has simple knowledge data structures and algorithms prepare for a Google internship interview scheduled for next week.1 -
Leverage online code platforms for exercises/assesments. Something like qualified.io for educators.
Teach algorithms with code challenges with sample test cases. Builds confidence, makes learning fun, and gives immediate feedback. -
Can you guys please recommend books that made you cry?
My Answer:
Data Structures and Algorithms in Java5