SlideShare a Scribd company logo
Puzzle of two brother and
facebook-3D cube
Hup university
5-2-2018
Puzzle
• Sahil and Ritik are brothers. One day they were discussing who is
smarter. But gradually the discussion turned into an argument.
Mother came and tried to handle the situation. She gave them a
problem to solve and the one who will solve the problem first,
would be considered smarter than the other. The problem is
• :
In a group of 6 people, you might find some people are friends on
Facebook, or you might find that no one is friend on Facebook. The
brothers are supposed to prove that there is always a group of 3
people where either :
•
–All3 people are mutual friends on Facebook.
• –All3 people are strangers (i.e, no one is friend on Facebook).
• Can you help the brothers to reach to the solution ?
Solution using 3D Cube
• Since we want to find pointes of three
elements only, we can used xyz dimension
• Each layer will be a name of one person , and
we will find the relation of that person with
the others.
• We will find repetition points and position
they must be delete .
• When we find the 3 friends in each layer we
can find the not 3 friends too.
Layer one
Repetitions position
This position will
be delete for all
the layer
After delete repetition
Repetitions positionsThis position will
be delete for all
the layer
These positions
will be delete for
all the layer
Repetitions
positions
Layer1- After delete repetition
Layer1- Repetitions pointes
Layer1- After delete repetition
3 friends
Layer1- Repetitions pointes
Layer 1- After delete repetition
Layer 1- Repetitions pointes
Layer 1- Repetitions pointes
Layer 1- 3 friends
Layer1- Delete position from the cube
Layer 1- 3 friends
3 friends3 friends3 friendsNot 3 friends
Puzzle of two brother and facebook 3 d cube
Layer 2- Not correct pointes
Layer 2 delete position in All the cube
Layer2- After delete
Layer 2- 3 friends
Layer3- delete not correct pointes
Layer 3 delete position in All the cube
Layer3- After delete
Layer 3- 3 friends
Layer 4- delete not correct pointes
Layer 4 delete position in All the cube
Layer4- 3 friends
Layer 4- 3 friends

More Related Content

PPTX
Hidden Path 5th grade
Krista Leh
 
PPT
Nice to meet you class
Yariela Villavicencio
 
PDF
Unit 1 6th grade good one
lamitjanaenglishclassroom
 
PPTX
Compute skillspowerpoint lect2
zahraa F.Muhsen
 
PPTX
Computer skills powerpoint intro
zahraa F.Muhsen
 
PPTX
Filter
zahraa F.Muhsen
 
PDF
Table
zahraa F.Muhsen
 
PPTX
List
zahraa F.Muhsen
 
Hidden Path 5th grade
Krista Leh
 
Nice to meet you class
Yariela Villavicencio
 
Unit 1 6th grade good one
lamitjanaenglishclassroom
 
Compute skillspowerpoint lect2
zahraa F.Muhsen
 
Computer skills powerpoint intro
zahraa F.Muhsen
 

More from zahraa F.Muhsen (20)

PPTX
Computer skills excel2010 5
zahraa F.Muhsen
 
PPTX
Computer skills excel2010 data
zahraa F.Muhsen
 
PPTX
Computer skills excel2010 2
zahraa F.Muhsen
 
PPTX
Computer skills excel2010
zahraa F.Muhsen
 
PPTX
Computer skills excel2010 3
zahraa F.Muhsen
 
PPTX
Computer skills excel2010-4
zahraa F.Muhsen
 
PDF
Computer skills excel2010
zahraa F.Muhsen
 
PPTX
Genetic algorithms
zahraa F.Muhsen
 
PPTX
Internet search techniques
zahraa F.Muhsen
 
PPTX
Nearest neighbor search
zahraa F.Muhsen
 
PPTX
Search methods
zahraa F.Muhsen
 
PPTX
Hash function
zahraa F.Muhsen
 
PPTX
Pigeonhole sort
zahraa F.Muhsen
 
PPTX
Gnome sort
zahraa F.Muhsen
 
PPTX
Puzzle (1000 coins and 10 bags)
zahraa F.Muhsen
 
PPTX
Php1
zahraa F.Muhsen
 
PPTX
Binary tree
zahraa F.Muhsen
 
PPTX
Selection sort
zahraa F.Muhsen
 
PPTX
Puzzle the neighbor
zahraa F.Muhsen
 
PPTX
Merge sort
zahraa F.Muhsen
 
Computer skills excel2010 5
zahraa F.Muhsen
 
Computer skills excel2010 data
zahraa F.Muhsen
 
Computer skills excel2010 2
zahraa F.Muhsen
 
Computer skills excel2010
zahraa F.Muhsen
 
Computer skills excel2010 3
zahraa F.Muhsen
 
Computer skills excel2010-4
zahraa F.Muhsen
 
Computer skills excel2010
zahraa F.Muhsen
 
Genetic algorithms
zahraa F.Muhsen
 
Internet search techniques
zahraa F.Muhsen
 
Nearest neighbor search
zahraa F.Muhsen
 
Search methods
zahraa F.Muhsen
 
Hash function
zahraa F.Muhsen
 
Pigeonhole sort
zahraa F.Muhsen
 
Gnome sort
zahraa F.Muhsen
 
Puzzle (1000 coins and 10 bags)
zahraa F.Muhsen
 
Binary tree
zahraa F.Muhsen
 
Selection sort
zahraa F.Muhsen
 
Puzzle the neighbor
zahraa F.Muhsen
 
Merge sort
zahraa F.Muhsen
 
Ad

Recently uploaded (20)

PPTX
Probability systematic sampling methods.pptx
PrakashRajput19
 
PPTX
Analysis of Employee_Attrition_Presentation.pptx
AdawuRedeemer
 
PPTX
Introduction to Data Analytics and Data Science
KavithaCIT
 
PDF
A Systems Thinking Approach to Algorithmic Fairness.pdf
Epistamai
 
PDF
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
PDF
345_IT infrastructure for business management.pdf
LEANHTRAN4
 
PDF
CH1-MODEL-BUILDING-v2017.1-APR27-2017.pdf
jcc00023con
 
PDF
Mastering Financial Analysis Materials.pdf
SalamiAbdullahi
 
PPTX
Employee Salary Presentation.l based on data science collection of data
barridevakumari2004
 
PPTX
Machine Learning Solution for Power Grid Cybersecurity with GraphWavelets
Sione Palu
 
PPTX
Lecture 1 Intro in Inferential Statistics.pptx
MiraLamuton
 
PPTX
Presentation (1) (1).pptx k8hhfftuiiigff
karthikjagath2005
 
PDF
Company Profile 2023 PT. ZEKON INDONESIA.pdf
hendranofriadi26
 
PPTX
batch data Retailer Data management Project.pptx
sumitmundhe77
 
PPTX
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
abhinavmemories2026
 
PDF
Digital Infrastructure – Powering the Connected Age
Heera Yadav
 
PPTX
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
PPTX
Azure Data management Engineer project.pptx
sumitmundhe77
 
PPTX
Measurement of Afordability for Water Supply and Sanitation in Bangladesh .pptx
akmibrahimbd
 
PDF
Taxes Foundatisdcsdcsdon Certificate.pdf
PratyushPrem2
 
Probability systematic sampling methods.pptx
PrakashRajput19
 
Analysis of Employee_Attrition_Presentation.pptx
AdawuRedeemer
 
Introduction to Data Analytics and Data Science
KavithaCIT
 
A Systems Thinking Approach to Algorithmic Fairness.pdf
Epistamai
 
The_Future_of_Data_Analytics_by_CA_Suvidha_Chaplot_UPDATED.pdf
CA Suvidha Chaplot
 
345_IT infrastructure for business management.pdf
LEANHTRAN4
 
CH1-MODEL-BUILDING-v2017.1-APR27-2017.pdf
jcc00023con
 
Mastering Financial Analysis Materials.pdf
SalamiAbdullahi
 
Employee Salary Presentation.l based on data science collection of data
barridevakumari2004
 
Machine Learning Solution for Power Grid Cybersecurity with GraphWavelets
Sione Palu
 
Lecture 1 Intro in Inferential Statistics.pptx
MiraLamuton
 
Presentation (1) (1).pptx k8hhfftuiiigff
karthikjagath2005
 
Company Profile 2023 PT. ZEKON INDONESIA.pdf
hendranofriadi26
 
batch data Retailer Data management Project.pptx
sumitmundhe77
 
Bharatiya Antariksh Hackathon 2025 Idea Submission PPT.pptx
abhinavmemories2026
 
Digital Infrastructure – Powering the Connected Age
Heera Yadav
 
Pipeline Automatic Leak Detection for Water Distribution Systems
Sione Palu
 
Azure Data management Engineer project.pptx
sumitmundhe77
 
Measurement of Afordability for Water Supply and Sanitation in Bangladesh .pptx
akmibrahimbd
 
Taxes Foundatisdcsdcsdon Certificate.pdf
PratyushPrem2
 
Ad

Puzzle of two brother and facebook 3 d cube