# Recent questions tagged algorithms

What algorithms exist for streaming network data? Implemented an application for processing packet headers, the meaning is this: in one interface eth0 enter the data from the gray network change and go out of eth1, the ...
How to find the shortest path with the minimum number of turns (turns in priority)? How to find the shortest path with the minimum number of turns ? In this example, 1 is the orange wall and 0 is the black void: The red line is how the path should b ...
Is it possible to create a 3D scene from a video? Is there even such an idea? That is, using a neural network to recreate the entire scene from the video sequence, for example the scene where the two are talking in the ...
How to implement a depth search without recursion and if there are a lot of ring links? There is a two-dimensional array and a finite number of cells next to the same data value. You have to go around them ...
A quick way to find all possible variations of the array values What are some ways? Good afternoon, I have an array of 3 elements I want to get all possible combinations from this array: массив: 'A','B','C' Комбинации:ABCA BA CB C A B C The trouble i ...
How do I go through the array as long as the dates match? I have objects that have record times. There are a lot of objects, so I think it is resource-consuming to loop through all the records. Actually, my question is: how to ...
How do I calculate the perspectiveTransform by 3 points? There is a photo from the camera (calibrated by means of OpenCV) of the object. I can only find 3 points on it (no options). Let's call this the "original" position. ...
How can I make the number of gaps in the substitution equal to the length of the word or make a recalculation so that the substitutions do not collapse? Good afternoon! You need to replace with empty/delete words from the array in the string. I find the initial indexes and then replace them with a blank, but my replace ...
How to refine the algorithm? Good afternoon. I decided to write an algorithm for the game in it, so that the bot always wins, but when you start the game with the number 8 bot loses. How to refine i ...
What sorting algorithm is presented? The problem is from the Yandex contest. There is a function - a generator, also encrypted, uses a sorting algorithm. I need to find a bug in it. But I can't even underst ...
How do I calculate the optimal suppliers and quantities to order? There is a conditional array with vendor prices and quantities in stock, the first element in the array is priceBreak where the key is the minimum quantity to order, and ...
How can we tell if a vector is not pointing toward the center of coordinates? I have a polygon structure, for it I need to calculate the normal. To do this, I choose 2 random vectors and vectorically multiply them. Since I choose 2 vectors at rand ...
How to improve the performance of js code? Good day to you, Hubrowites! I recently started studying at codewars and had a problem with the speed of code execution. There is a code: function partsSums(ls) { ls ...