C++ Programming Examples on Numerical Problems & Algorithms

This section covers C++ Programming Examples on Numerical Problems & Algorithms. Every example program includes the description of the program, C++ code as well as output of the program. Here is the listing of C++ programming examples:

1. C++ Programming examples on “Solving Linear Equations”

The C++ programs in this section performs encoding matrix using a hidden-key and LU Decomposition of any matrix. It also deals with implementation of Coppersmith Freivald’s Algorithm to check if the 3rd matrix is the result of multiplication of the given two matrices. Gauss jordan elimination is an algorithm for solving systems of linear equations. Gauss seidel method is an iterative method used to solve a linear system of equations.

3. C++ Programming examples on “Matrix Multiplication”

This section contains C++ programs on matrix multiplication and multiplication for complex numbers, implementation of strassen’s algorithm for matrix multiplication. This section also contains programs on how to check sparsity of a given matrix and also multiplicability of two matrices.

This section contains a C++ programs to find the minimum and maximum value of any algebraic expressions and compute local optima by implementing steepest descent method and conjugate method.

C++ Program to Find Minimum Value of any Algebraic Expression
C++ Program to Find Maximum Value of any Algebraic Expression
C++ Program to Implement Steepest Descent Method and Compute Local Optima
C++ Program to Implement Conjugate Method and Compute Local OptimaC++ Program to Implement Modular Exponentiation Algorithm

6. C++ Programming examples on “Linear Programming”

This section contains C++ Programs on optimising solutions for different applications using linear programming concept and also contains a program to find the maximum value of an expression.

advertisement

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

8. C++ Programming examples on “Factoring and Primality Testing”

This section contains C++ 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. It also explains the program to perform baillie-PSW and fermat primality test.