Implement Jacobi Method to Solve Linear Equations in Python

Dr Pankaj Dumka
Updated on 03-Oct-2023 12:38:45

3K+ Views

It is the most straightforward iterative strategy for tackling systems of linear equations shown below. $$\mathrm{a_{1, 1}\: x_{1} \: + \: a_{1, 2} \: x_{2} \: + \: \dotso\dotso \: + \: a_{1, n} \: x_{n} \: = \: b_{1}}$$ $$\mathrm{a_{2, 1} \: x_{1} \: + \: a_{2, 2} \: x_{2} \: + \: \dotso\dotso \: + \: a_{2, n} \: x_{n} \: = \: b_{2}}$$ $$\mathrm{\vdots}$$ $$\mathrm{a_{n, 1} \: x_{1} \: + \: a_{n, 2} \: x_{2} \: + \: \dotso\dotso \: + \: a_{n, n} \: x_{n} \: = \: b_{n}}$$ The fundamental concept is: each linear ... Read More

Don’t Care X Conditions in K Maps

Manish Kumar Saini
Updated on 03-Oct-2023 12:38:38

4K+ Views

K-Map or Karnaugh Map is a graphical method of simplifying Boolean expression. A K-Map composed of an arrangement of adjacent squares or cells, where each cell represent a particular combination of variables in sum or product form. In the K-map method, there is a useful condition namely, Don’t Care Condition, which helps in simplifying a Boolean function. The don’t care condition makes the grouping of variables in K-map easy. In this tutorial, we will understand the "don’t care" concept in K-map reduction with the help of solved examples. Sometimes, in a Boolean expression for certain input combinations, the value of ... Read More

De Morgan's Theorem in Dual Form

Manish Kumar Saini
Updated on 03-Oct-2023 12:31:14

361 Views

In Boolean algebra, several rules are defined to perform operations in digital logic circuits. Boolean algebra is a tool to perform operation on binary digits, i.e. 0 and 1. These two binary digits 0 and 1 are used to denote FALSE and TRUE states of a digital circuit at input and output ends. Boolean algebra, developed by George Boole, uses 0s and 1s to create truth tables and logic expressions of digital circuits like AND, OR, NOT, etc. which are used to analyze and simplify the complex circuits. There were another English mathematician Augustus De Morgan who explained the NAND ... Read More

Convert SSOP to SPOS Form

Manish Kumar Saini
Updated on 03-Oct-2023 12:24:13

949 Views

A Boolean function can be expressed into two forms namely, Sum of Products (SOP) Form Product of Sums (SOP) Form The SOP (Sum of Products) form is one in which the Boolean function is expressed as the sum of product terms, while in the POS (Product of Sums) form, the Boolean function is expressed as the product of sum terms of the function. But, in the SOP and POS form, each term of the function may not contain all the variables. For example, consider a Boolean function in three variables, $$\mathrm{\mathit{f}\lgroup A, B, C\rgroup=A\overline{B}+\overline{B}C}$$ This is the ... Read More

Convert POS to Standard POS Form

Manish Kumar Saini
Updated on 03-Oct-2023 12:13:01

6K+ Views

When a Boolean expression is represented as a product of sum terms, it is called POS (Product of Sums) form. In POS form, each sum term of the expression may not contain all the variables. On the other hand, when the Boolean expression is represented as a product of sum terms, where each sum term contains all the variables of the function, it is called Standard Product of Sums (SPOS) form. In the Standard POS form, each sum term of the Boolean expression is called a maxterm. Now, let us discuss the expansion of a Boolean expression in POS form ... Read More

Conversion Between Canonical Forms

Manish Kumar Saini
Updated on 03-Oct-2023 12:06:33

2K+ Views

When a logical expression or Boolean function is expressed as a sum of minterms or as a product of maxterms, then it is called the canonical form of the expression or function. A canonical form of the Boolean expression is also known as standards form, i.e. Standard Sum of Products (SSOP) Form and Standard Product of Sums (SPOS) Form. The canonical form of a Boolean function involves minterms and maxterms. A minterm is a product term which contains all the variables of the Boolean function either in complemented or un-complemented form. A maxterm is a sum term which ... Read More

5 Variable K-Map in Digital Electronics

Manish Kumar Saini
Updated on 03-Oct-2023 12:01:23

5K+ Views

K-Map or Karnaugh Map is a simplification technique used to minimize a given complex Boolean function. K-Map or Karnaugh Map is a graph or chart which is composed of an arrangement of adjacent cells, where each cell of the K-Map represents a particular combination of variables in either sum or product form. The K-map can be used to simplify Boolean functions involving any number of variables. But, the simplification of a Boolean function using K-map becomes very complex for expressions involving five or more variables. Therefore, in actual practice, the K-map is limited to six variables. The number of cells ... Read More

Longest Subsequence with Different Adjacent Characters

Sonal Meenu Singh
Updated on 03-Oct-2023 11:57:52

262 Views

Introduction In this tutorial, we implement an approach to find the longest subsequence with different adjacent characters. Here, the longest subsequence is a subsequence that contains the maximum number of string characters with different adjacent characters. To implement the approach to finding the longest subsequence, consider a string s, and iterate We use two approaches to resolve the problem statement of finding the longest subsequence having different adjacent characters. Greedy ApproachIt is one of the most used algorithms to solve the data structure problem. This approach tries all possible cases and chooses the most suitable. Dynamic programmingIt ... Read More

Validate Image File Extension Using Regular Expression

Sonal Meenu Singh
Updated on 03-Oct-2023 10:53:07

3K+ Views

Introduction In this article, we check validate image file extension using regular expressions. Image file extension in this article, is the valid extension for an image file which consists of file name and file extension . The valid image file extension follows some rules which we define in this article. Regular expression or regex is used for pattern matching in strings or string searching algorithms. Its functionalities are defined in the header file. It is used with a regex keyword followed by a variable. In this C++ tutorial, we check whether the input string is a valid image file ... Read More

Check Aadhaar Number Validity Using Regular Expression

Sonal Meenu Singh
Updated on 03-Oct-2023 10:41:26

6K+ Views

Introduction In this C++ tutorial, we check whether the input Aadhar number is valid using Regular Expression. Regular expression or regex is used for pattern matching in strings or string searching algorithms. Its functionalities are defined in the header file. It is used with a regex keyword followed by a variable. Indian citizens are issued an Aadhaar number, which is a unique identification number. It is a 12-digit unique number and no two people have a similar AADHAAR number. Syntax regex regular_expression_patternname return regex_match(value, regular_expression_patternname); In this tutorial to check the validity of an Aadhar number we ... Read More

Advertisements