Skip to content

Instantly share code, notes, and snippets.

View Nandan-N's full-sized avatar
💭
Living :)

Nandan N Nandan-N

💭
Living :)
View GitHub Profile
- Game theory can help us understand real-world scenarios: Game theory has been applied to many real-world scenarios such as political science, psychology, and economics, as it helps explain human behavior and decision making in situations of conflict or cooperation.
- The prisoner's dilemma is a classic example of game theory: The prisoner's dilemma is a classic example used to explain the concept of game theory, where two suspects are arrested for a crime and must decide whether to cooperate with each other or betray each other.
- The Nash Equilibrium: Game theory is also known for its contribution to economics, specifically through John Nash's concept of the Nash Equilibrium, which is a state in which no player can improve their position by changing their strategy.
- Game theory can help us understand the spread of disease: Game theory can be used to model the spread of diseases, such as understanding the factors that contribute to the spread of an infectious disease, and the strategies that individuals
@Nandan-N
Nandan-N / big data
Last active September 16, 2023 11:03
hadoop jar $HADOOP_HOME/share/hadoop/tools/lib/hadoop-streaming-3.3.6.jar \
-mapper "$PWD/mapper.py" \
-reducer "$PWD/reducer.py" \
-input <path_to_input_in_hdfs> \
-output <path_to_output_folder_in_hdfs>
cat sample_data.json | ./mapper.py | sort -k 1,1 | ./reducer.py