Skip to main content

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.

1 vote
1 answer
88 views

Prove or disprove: Given a maximum flow f returned by Dinic's algorithm, there does not exist a cycle in the network such that every edge on the cycle has a strictly positive flow (f(e) > 0). My ...
CS student's user avatar
-2 votes
0 answers
21 views

What the meaning of synchronization and under it explain solution strategies And additionally what are the models and mechanisms(semaphore,monitors,conditonal variable,rendezvous
Debisa Terefe's user avatar
1 vote
1 answer
43 views

Consider the original problem: finding the lexicographically smallest subsequence of size $k$ from an array / string. I managed to write a proof that shows the monotonic stack algorithm is correct for ...
stefan's user avatar
  • 11
2 votes
1 answer
94 views

I was reading some Data structures and algorithms resources and I'm wondering why they don't mention great algorithms we use in everyday programming like filter, map and reduce instead of those ...
ART's user avatar
  • 23
1 vote
0 answers
46 views

Many graph-theoretic (and math in general) conjectures are non-constructive. They propose the existince of a structure, without a need to find said structure. As a result, the Probabilistic Method can ...
Charles G's user avatar
2 votes
0 answers
108 views

Disclosure: this question was drafted with help from ChatGPT based on my notes, implementation, and experimental results. The algorithmic idea and experiments are mine, but some of the English wording ...
user192813's user avatar
0 votes
0 answers
42 views

I’ve been performing a high-fidelity spectral analysis on (dCp/dT) (derivative of specific heat capacity) residuals for liquid water using several public datasets.I’ve noticed a subtle but persistent ...
Smile's user avatar
  • 1
2 votes
1 answer
149 views

I am working on a reduction to show NP-completeness of a decision problem arising from a simple economic model. The problem (NETWORK-EQUILIBRIUM-WELFARE) is: Given: a finite set of agents, each with a ...
Steve Lewarne's user avatar
0 votes
0 answers
36 views

I’m trying to understand the correctness of the OM(2) algorithm in the Byzantine Generals problem (with 7 generals, up to 2 traitors). Assume the commander is loyal, and two lieutenants are traitors: ...
Pierre's user avatar
  • 1
0 votes
0 answers
15 views

I'm making a game that needs to have grids. These grids are dynamic and can be split into multiple grids. How would I find if a grid has split? I was thinking maybe I keep a list of local components (...
qwertyuiop's user avatar
1 vote
1 answer
47 views

I'm adding a feature to a logging library that requires me to uniquely tag certain repeated log strings, so long as they came from the same base format string. The naive algorithm (searching for ...
ijustlovemath's user avatar
1 vote
1 answer
75 views

Assume I have some integer $a$, and perform some kind of bitwise operation on it with $b$ to get $$ c = a\ \operatorname{op_1} b $$ where op could be any of AND, <...
Arii's user avatar
  • 119
1 vote
1 answer
38 views

The Problem There is a tape with $n$ perforations. The length between perforations is $x_i$, where $x_0$ is the length from the start to the $1$st perforation, $x_1$ is the length from $1$st ...
Wio's user avatar
  • 113
0 votes
1 answer
47 views

Recently, I participated in a coding competition. The problem that I am proposing is named "Ghostfires", which I will reformulate as follow: Let $\Sigma = \{R, G, B\}$ be an alphabet of ...
Nhật Minh Bùi's user avatar
1 vote
0 answers
28 views

I am trying to understand the theoretical foundations behind normalization techniques such as Batch Normalization and Layer Normalization in deep neural networks. It is often stated that these methods ...
Sakshi Gaba's user avatar

15 30 50 per page
1
2 3 4 5
788