New Post

Nash Equilibrium In Game Theory ~xRay Pixy

Image
 Video Link  CLICK HERE... Learn Nash Equilibrium In Game Theory Step-By-Step Using Examples. Video Chapters: Nash Equilibrium  00:00 Introduction 00:19 Topics Covered 00:33 Nash Equilibrium  01:55 Example 1  02:30 Example 2 04:46 Game Core Elements 06:41 Types of Game Strategies 06:55  Prisoner’s Dilemma  07:17  Prisoner’s Dilemma Example 3 09:16 Dominated Strategy  10:56 Applications 11:34 Conclusion The Nash Equilibrium is a concept in game theory that describes a situation where no player can benefit by changing their strategy while the other players keep their strategies unchanged.  No player can increase their payoff by changing their choice alone while others keep theirs the same. Example : If Chrysler, Ford, and GM each choose their production levels so that no company can make more money by changing their choice, it’s a Nash Equilibrium Prisoner’s Dilemma : Two criminals are arrested and interrogated separately. Each has two ...

C++ Program to Calculate Area of Rectangle using Objects and Classes.

C++ Program to Calculate Area of Rectangle using Objects and Classes.

Calculate Area of Rectangle: Area = Length * width

Program Output:


Source Code 

#include<iostream>

#include<conio.h>

using namespace std;

class rectangle {

private:

int a, b;

public:

void setdata(int x, int y) 

{

a = x;

b = y;

}

void area()

{

int area = a*b;

cout<<"\n Area of Rectangle = " <<area;

}

};

int main()

{

rectangle r1, r2; //objects

r1.setdata(15,40);  //object r1 called setdate()

cout<<"\nFor First Rectangle ";

r1.area(); // object r1 calls area()

r2.setdata(30,60);  //object r1 called setdate()

cout<<"\nFor First Rectangle ";

r2.area(); // object r1 calls area()

getch();

return 0;

}


Comments

Popular Post

PARTICLE SWARM OPTIMIZATION ALGORITHM NUMERICAL EXAMPLE

Cuckoo Search Algorithm for Optimization Problems

Particle Swarm Optimization (PSO)

PSO (Particle Swarm Optimization) Example Step-by-Step

how is the LBP |Local Binary Pattern| values calculated? Step-by-Step with Example

PSO Python Code || Particle Swarm Optimization in Python || ~xRay Pixy

Grey Wolf Optimization Algorithm

Bat algorithm Explanation Step by Step with example

Grey Wolf Optimization Algorithm Numerical Example

Whale Optimization Algorithm Code Implementation || WOA CODE || ~xRay Pixy