Discrete Mathematics Cheat Sheet: Key Concepts & Formulas

Discrete Mathematics Cheat Sheet

Propositional Logic

Consistent – Set of statements that are all satisfiable and all true for the same set of propositional variables

Satisfiable – Evaluates to true for at least one set of variables

Tautology – All true

Logically Correct Argument – Every situation that makes all premises true, conclusion also true

Contradiction – All false

Proof

Induction – Basis: show P(1), assume P(x) (inductive hypothesis), Inductive: show P(x+1) using P(x)

Direct – Arbitrary entity x

Read More

Entity Framework Core Tutorial: Getting Started

1. Install Entity Framework

Install-Package Microsoft.EntityFrameworkCore.Sqlite

Install-Package Microsoft.EntityFrameworkCore.Tools –Pre

Tip

In a real application, you would put each class in a separate file and put the connection string in the App.Config file and read it out using ConfigurationManager. For the sake of simplicity, we are putting everything in a single code file for this tutorial.

2. Create Your Model

using Microsoft.EntityFrameworkCore;
using System.Collections.Generic;

namespace 
Read More

Essential C++ Programs: From Compound Interest to Structures

COMPOUND INTEREST

#include

#include

#include

int main()

{

       float P,R,T,CI;

       cout<“enter principal,=”” rate=”” and=”” time=”” :=””>”enter>

       cin>>P>>R>>T;

       CI=P*pow((1+R/100),T) – P;

       cout<“compound interest=”” is=”” :=””>”compound><>

       getch();

       return 0;

}

FACTORIAL OF A NUMBER

#include

#include

void main()

{

    int number,factorial=1;

    cout < “enter=”” number=”” to=”” find=”” its=

Read More

A Comprehensive Guide to Machine Learning: Algorithms, Applications, and Techniques

Need for Machine Learning

Machine learning is capable of performing tasks that are too complex for humans. It is widely used in many industries, including:

  • Healthcare
  • Finance
  • E-commerce

Using machine learning offers several benefits:

  • Saves time and money
  • Serves as an important tool for data analysis and visualization

Use Cases

  • Self-driving cars
  • Cyber fraud detection
  • Friend suggestions on Facebook
  • Facial recognition systems

Advantages of Machine Learning

  • Rapid increase in data production
  • Solving complex problems
Read More

Principles and Styles of Software Architecture

Principles of Architecture

  • Abstraction
  • Encapsulation
  • Separation of Responsibilities
  • Coupling and Cohesion
  • No Duplication
  • Parameterization and Configurability
  • Clarity and Simplicity
  • Separation of Interface and Implementation

Benefits of Studying Software Architecture

Understanding the details of selected architectures helps determine the best design alternatives.

Impact of Architecture on Software

Software architecture allows us to reason and plan for:

  • System Reliability
  • Evolution
  • Reuse
  • Efficiency
  • Improved Maintenance
  • Etc.
Read More

A Comprehensive Guide to Machine Learning: Algorithms, Applications, and Techniques

Need for Machine Learning

Machine learning is capable of performing tasks that are too complex for humans. It is widely used in many industries, including healthcare, finance, and e-commerce. By leveraging machine learning, we can save both time and money. Moreover, it serves as a crucial tool for data analysis and visualization.

Use Cases:

  • Self-driving cars
  • Cyber fraud detection
  • Friend suggestions on Facebook
  • Facial recognition systems

Advantages of Machine Learning

  • Rapid increase in data production
  • Solving
Read More