# Java Programming Examples on Numerical Problems & Algorithms

## 1. Java Programming examples on “Solving Linear Equations”

The section contains programs on solving mathematical equations, computing matrix inverse and matrix decomposition and implementation of various algorithms like gauss jordan, gauss seidel, coppersmith freivald and others.

## 2. Java Programming examples on “Bandwidth Reduction”

The section contains programs to perform optimization of the length of a wire in case of electric circuits, implementation of different algorithms like RCM and other concepts of bandwidth reduction.

Java Program to Implement RCM Algorithm Java Program to Optimize Wire Length in Electrical Circuit Java Program to Perform Bandwidth Reduction on Graphs |

## 3. Java Programming examples on “Matrix Multiplication”

The section contains programs on matrix multiplication and operations like performing multiplication of complex numbers, computing the path between the two nodes of a graph, dynamic programming and checking for a sparse matrix and strassen algorithm.

## 4. Java Programming examples on “Determinants and Permanents”

The section contains programs on inverting a matrix and evaluating matrix determinant.

Java Program to Check if a Matrix is Invertible Java Program to Compute Determinant of a Matrix |

## 5. Java Programming examples on “Constrainted and UnConstrained Optimization”

The section contains programs that evaluate maximum and minimum values of algebraic expressions and compute local optima by implementing steepest descent method and conjugate method.

Java Program to Find Minimum Value of any Algebraic Expression Java Program to Find Maximum Value of any Algebraic Expression Java Program to Implement Steepest Descent Method and Compute Local Optima Java Program to Implement Conjugate Method and Compute Local Optima |

## 6. Java Programming examples on “Linear Programming”

The section contains questions on optimising solutions for different applications using linear programming concept.

Java Program to Find Maximum Value of an Expression and Given 3 Inequalities Java Program to Optimize Solution for Employer Applicant Mark Problem Using Linear Programming |

## 7. Java Programming examples on “Random Number Generation”

The section contains programs on genrating passwords and data of a specified length and between a given range, generating random numbers and random hexadecimal bytes, implementing rand and srand functions and generating random numbers by implementing various methods like linear congruential generator, middle square method, carry method, inversion method and probability distribution function.

## 8. Java Programming examples on “Factoring and Primality Testing”

The section contains programs to generate prime numbers using sieev wheel, sieve of eratosthenes, sieve of atkin, sieve of sundaram and rabin-miller primalty test. It also contains programs on computing GCD, LCM and factorization of numbers. The other programs implement recursive and extended euclid algorithm, stein GCD, fermat factorization and pollard rho algorithms.

## 9. Java Programming examples on “Arbitrary-Precision Arithmetic”

The section contains questions on performing addition , multiplication using bitwise operators and signed numbers and implementation of booth, karatsuba and schonhage-strassen algorithm.

## 10. Java Programming examples on “Knapsack Problem”

The section contains programs on various implementations of knapsack problems like 0-1 knapsack, fractional knapsack, bin packing and dynamic programming.

Java Program to Solve the Knapsack Problem Java Program to Solve the 0-1 Knapsack Problem Java Program to Solve the Fractional Knapsack Problem Java Program to Perform Partition of an Integer in All Possible Ways Java Program to Fill Given n Numbers into a Given N Number and Ensure that Minimum is Left from N Java Program to Implement the Bin Packing Algorithm Java Program to Solve Knapsack Problem Using Dynamic Programming Java Program to Calculate Maximum Payoff by ReOrdering Two Given Sets |

## 11. Java Programming examples on “Discrete Fourier Transform”

The section contains programs on computing fourier transforms using DFT coefficients, naive approach and fast fourier transform method.

## 12. Others

The section contains programs that implement miscellaneous algorithms like horner, Nth root, borwein, 1/pi, shunting yard, shoelace, regular falsi and gaussian elimination algorithm.

**Here’s the list of 1000 Java Algorithms, Problems & Programming Examples.**