1
vote
3sat to clique reduction program
Let 3-SAT formula $\phi$ be $C_1 \wedge C_2 \wedge \dots \wedge C_m$, where $C_i$ is a clause consisting of the disjunction of three literals: $(\ell_i^1 \vee \ell_i^2 \vee \ell_i^3)$.
We can create ...
1
vote
Threads and its priority in Java
Operating systems don't always let a user control thread priority in the way that a programmer would like, and certainly not without extra privileges.
General-purpose operating systems have multiple ...
1
vote
Accepted
Java optimization and minimization
You can solve this with linear programming.
Let's start with the variables. Let $x_d$ denote the number of drivers whose work week starts on day $d$, e.g., $x_\text{Monday}$ denotes the number of ...

D.W.♦
- 154k
1
vote
Numerical Approximation in Java
With $p:=\dfrac ms$, squaring and collecting all the constants to avoid the mess, the equation reads
$$e^{p^2}=\lambda p^2$$ or $$-p^2e^{-p^2}=-\lambda^{-1}.$$
Hence using the Lambert function,
$$s=\...
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
java × 110algorithms × 23
data-structures × 14
programming-languages × 14
object-oriented × 6
time-complexity × 5
arrays × 5
loops × 5
graphs × 4
dynamic-programming × 4
compilers × 4
binary-trees × 4
c++ × 4
optimization × 3
runtime-analysis × 3
artificial-intelligence × 3
recursion × 3
type-theory × 3
knapsack-problems × 3
linked-lists × 3
turing-machines × 2
machine-learning × 2
formal-grammars × 2
trees × 2
search-algorithms × 2