# Questions tagged [algorithms]

An algorithm is a sequence of well-defined steps that defines an abstract solution to a problem. Use this tag when your issue is related to design and analysis of algorithms.

7,170 questions
1answer
398 views

### Finding Shortest Paths of weighted graph using stacks

I will be given some kind of this graph as in the picture below. I've searched some algorithms but it seams as if it is something impossible for me to figure them out. In fact using Floyd–Warshall ...
2answers
76 views

### Bubble Sort with “while” loop - why is average case n^2?

If Bubble Sort is written as: ...
2answers
60 views

### Divide two strings to form palindrome [on hold]

Given two strings, A and B, of the same length $n$, find whether it is possible to cut both strings at a common point such that the first part of A and the second part of B form a palindrome. I've ...
0answers
10 views

### About to find the maximum sum of transaction within a time window period

I received hundreds of transactions within one week. Each transaction has amount. I'd like to create an algorithm to find the maximum amount within 24 hour time window period. I know how to do that by ...
6answers
46k views

### The math behind converting from any base to any base without going through base 10?

I've been looking into the math behind converting from any base to any base. This is more about confirming my results than anything. I found what seems to be my answer on mathforum.org but I'm still ...
2answers
71 views

### Why run -time of N-Queens using backtracking algorithm fluctuates?

I have tested and measured the running time of a backtracking algorithm for solving the $N$-Queens problem. When $N=7$, the run time is $0.773$, but for $N=8$, the run time is $0.492$. I think the ...
0answers
32 views