SlideShare uma empresa Scribd logo
1 de 10
Introdução à Lógica
Matemática
Cleone Silva
cleone.lima@ifrn.edu.br
http://docente.ifrn.edu.br/cleonelima
Lógica
 A lógica é usada para guiar nossos pensamentos ou ações na busca da
solução:
– A lógica está correta se conseguirmos atingir o nosso objetivo;
– É a habilidade fundamental para se resolver problemas de
programação de computadores.
 Temos que aprender a pensar de forma estruturada:
– Desenvolver e aperfeiçoar a técnica de pensamento;
– Seguir um raciocínio lógico e matemático.
O que é Lógica?
– A lógica trata da correção do pensamento;
– Ensina-nos a usar corretamente as leis do pensamento:
 É a arte de pensar corretamente;
 A forma mais complexa do pensamento é o raciocínio;
 Ordem da razão (nossa razão pode funcionar
desordenadamente) ou ordem no pensamento.
Noções de Lógica
 Exemplo:
– Todo mamífero é animal.
– Todo cavalo é mamífero.
– Portanto, todo cavalo é animal.
– Brasil é país do planeta Terra.
– Todos os Brasileiros são do Brasil.
– Portanto, todos os Brasileiros são terráqueos.
Existe lógica no dia-a-dia?
 Sempre que pensamos.
 Quando falamos, pois a palavra falada é a representação do
pensamento.
 Quando escrevemos, pois a palavra escrita é a representação da
palavra falada ou mesmo do nosso pensamento.
 Daí a importância da lógica em nossa vida, pois quando pensamos,
escrevemos ou falamos corretamente precisamos colocar Ordem no
Pensamento.
Existe lógica no dia-a-dia?
 Exemplos:
– a) A gaveta está fechada.
– A agenda está na gaveta.
– Preciso primeiro abrir a gaveta, para depois pegar a agenda.
– b) Ana é mais velha do que João.
– João é mais velho do que Pedro.
– Portanto, Ana é mais velha do que Pedro.
Treinando Raciocínio Lógico
Exercício
Um homem precisa atravessar um rio com um barco que
possui capacidade de transportar apenas ele mesmo e
mais uma de suas três cargas, que são: um lobo, um
bode e uma caixa de alfafa. Indique as ações
necessárias para que o homem consiga atravessar o rio
sem perder suas cargas.
 O lobo não pode ficar sozinho com o bode, senão ele o come;
 O bode não pode ficar sozinho com a alfafa, senão a come.
Treinando Raciocínio Lógico
... outro exercício
Três jesuítas e três canibais precisam atravessar um rio; para
tal, dispõem de um barco com capacidade para duas pessoas.
Por medida de segurança não se permite que em alguma
margem a quantidade de jesuítas seja inferior à de canibais
(senão o canibal come o jesuíta). Elabore um algoritmo
indicando as ações que concretizam a travessia com
segurança.
Treinando Raciocínio Lógico
... e outro exercício
Elabore um algoritmo que mova três discos de uma Torre de Hanói,
que consiste em três hastes (a-b-c), uma das quais serve de suporte
para três discos de tamanhos diferentes (1-2-3), os menores sobre os
maiores. Pode-se mover um disco de cada vez para qualquer haste,
contanto que nunca seja colocado um disco maior sobre um menor. O
objetivo é transferir os três discos para outra haste.
Perguntas???

Mais conteúdo relacionado

Destaque

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...DevGAMM Conference
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationErica Santiago
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellSaba Software
 

Destaque (20)

Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
Ride the Storm: Navigating Through Unstable Periods / Katerina Rudko (Belka G...
 
Barbie - Brand Strategy Presentation
Barbie - Brand Strategy PresentationBarbie - Brand Strategy Presentation
Barbie - Brand Strategy Presentation
 
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them wellGood Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
Good Stuff Happens in 1:1 Meetings: Why you need them and how to do them well
 

Introdução à Lógica Matemática

  • 1. Introdução à Lógica Matemática Cleone Silva cleone.lima@ifrn.edu.br http://docente.ifrn.edu.br/cleonelima
  • 2. Lógica  A lógica é usada para guiar nossos pensamentos ou ações na busca da solução: – A lógica está correta se conseguirmos atingir o nosso objetivo; – É a habilidade fundamental para se resolver problemas de programação de computadores.  Temos que aprender a pensar de forma estruturada: – Desenvolver e aperfeiçoar a técnica de pensamento; – Seguir um raciocínio lógico e matemático.
  • 3. O que é Lógica? – A lógica trata da correção do pensamento; – Ensina-nos a usar corretamente as leis do pensamento:  É a arte de pensar corretamente;  A forma mais complexa do pensamento é o raciocínio;  Ordem da razão (nossa razão pode funcionar desordenadamente) ou ordem no pensamento.
  • 4. Noções de Lógica  Exemplo: – Todo mamífero é animal. – Todo cavalo é mamífero. – Portanto, todo cavalo é animal. – Brasil é país do planeta Terra. – Todos os Brasileiros são do Brasil. – Portanto, todos os Brasileiros são terráqueos.
  • 5. Existe lógica no dia-a-dia?  Sempre que pensamos.  Quando falamos, pois a palavra falada é a representação do pensamento.  Quando escrevemos, pois a palavra escrita é a representação da palavra falada ou mesmo do nosso pensamento.  Daí a importância da lógica em nossa vida, pois quando pensamos, escrevemos ou falamos corretamente precisamos colocar Ordem no Pensamento.
  • 6. Existe lógica no dia-a-dia?  Exemplos: – a) A gaveta está fechada. – A agenda está na gaveta. – Preciso primeiro abrir a gaveta, para depois pegar a agenda. – b) Ana é mais velha do que João. – João é mais velho do que Pedro. – Portanto, Ana é mais velha do que Pedro.
  • 7. Treinando Raciocínio Lógico Exercício Um homem precisa atravessar um rio com um barco que possui capacidade de transportar apenas ele mesmo e mais uma de suas três cargas, que são: um lobo, um bode e uma caixa de alfafa. Indique as ações necessárias para que o homem consiga atravessar o rio sem perder suas cargas.  O lobo não pode ficar sozinho com o bode, senão ele o come;  O bode não pode ficar sozinho com a alfafa, senão a come.
  • 8. Treinando Raciocínio Lógico ... outro exercício Três jesuítas e três canibais precisam atravessar um rio; para tal, dispõem de um barco com capacidade para duas pessoas. Por medida de segurança não se permite que em alguma margem a quantidade de jesuítas seja inferior à de canibais (senão o canibal come o jesuíta). Elabore um algoritmo indicando as ações que concretizam a travessia com segurança.
  • 9. Treinando Raciocínio Lógico ... e outro exercício Elabore um algoritmo que mova três discos de uma Torre de Hanói, que consiste em três hastes (a-b-c), uma das quais serve de suporte para três discos de tamanhos diferentes (1-2-3), os menores sobre os maiores. Pode-se mover um disco de cada vez para qualquer haste, contanto que nunca seja colocado um disco maior sobre um menor. O objetivo é transferir os três discos para outra haste.