Upcoming SlideShare
×

Fuzzy logic

1,696 views

Published on

Published in: Education
2 Likes
Statistics
Notes
• Full Name
Comment goes here.

Are you sure you want to Yes No
Your message goes here
• Be the first to comment

Views
Total views
1,696
On SlideShare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
170
0
Likes
2
Embeds 0
No embeds

No notes for slide

Fuzzy logic

1. 1. Fuzzy logic in short term strategy games
2. 2. Introduction <ul><li>Binary Logic- It’s either true or false, On or Off. </li></ul><ul><li>Fuzzy Logic- </li></ul><ul><li>1. A person is having his 26th birthday. A comment from someone is &quot;you're not young anymore”. </li></ul><ul><li>2. Whether to guard a basketball player in basketball game or not. </li></ul>Company Logo
3. 3. Problem <ul><li>During the game how to decide whether the monster should attack or flee. </li></ul>Company Logo
4. 4. Problem…. <ul><li>If we have 5 states and 2 in put variables then we will have to handle 5^2 states(as states grow exponentially) </li></ul><ul><li>How you tackle 5 states and 6 inputs as states will grow to </li></ul><ul><li>5^6=625 ???? </li></ul>Company Logo
5. 5. Terms & their definitions <ul><li>Fuzzy Set- A fuzzy set is a pair (A,m) where A is a set </li></ul><ul><li>and m:A->[0,1] </li></ul><ul><li>X is called fuzzy member if 0<m(x)<1 </li></ul><ul><li>Fuzzy Logic- Fuzzy logic is a form of multi-valued logic derived from fuzzy set theory to deal with reasoning that is approximate rather than accurate. </li></ul><ul><li>Fuzzy logic means of representing problems to computers in way like the way human solve them and the essence of fuzzy logic is that everything is a matter of degree.”-Lofty </li></ul><ul><li>Zadeh </li></ul>Company Logo
6. 6. Strategy to solve Company Logo
7. 7. Solutions.. <ul><li>Let’s try to solve man’s age problem keeping other parameters same … </li></ul>Company Logo
8. 8. Fuzzy logic in a real game <ul><li>Making a fuzzy system- </li></ul>Company Logo
9. 9. Fuzzy logic in a real game.. <ul><li>Weighing rules- </li></ul>Company Logo
10. 10. Fuzzy logic in a real game.. <ul><li>Weighing rules in overlapping area- </li></ul><ul><li>……… </li></ul>Company Logo
11. 11. Fuzzy logic in a real game.. <ul><li>Weighing rules- </li></ul><ul><li>……… </li></ul>Company Logo
12. 12. Fuzzy logic in a real game.. <ul><li>Making the output- </li></ul>Company Logo
13. 13. Fuzzy logic in a real game.. <ul><li>Reaction- </li></ul>Company Logo
14. 14. Fuzzy logic in a real game.. <ul><li>Extra weights- </li></ul>Company Logo
15. 15. Short term decisions elaborated Company Logo
16. 16. Short term decisions elaborated Company Logo
17. 17. Short term decisions elaborated Company Logo
18. 18. Short term decisions elaborated Company Logo
19. 19. Short term decisions elaborated Company Logo
20. 20. Short term decisions elaborated Company Logo
21. 21. Short term calculations elaborated Company Logo
22. 22. Short term calculations elaborated Company Logo
23. 23. Short term calculations elaborated Company Logo
24. 24. Short term calculations elaborated Company Logo
25. 25. Short term calculations elaborated <ul><li>Defuzzification- Rules to manipulate fuzzy input to generate </li></ul><ul><li>crisp output. </li></ul><ul><li>1.Combs Method: This method uses logical equality </li></ul><ul><li>[( p and q ) then r ] = [( p then r ) or ( q then r )] </li></ul><ul><li>this method reduces states from s^n to s*n. </li></ul><ul><li>2.Center of mass Method: This method crops the extra upper </li></ul><ul><li>part of triangle, makes it trapezoid </li></ul><ul><li>and finds the center of mass of </li></ul><ul><li>figure…… </li></ul>Company Logo
26. 26. Short term calculations elaborated <ul><li>Degree of guard is 0.7,degree of sometimes guard is 0.4, and never guard is 0.4 </li></ul>Company Logo
27. 27. Conclusion <ul><li>Fuzzy logic emerged as a consequence of the 1965 proposal of fuzzy set theory by Lotfi Zadeh. </li></ul><ul><li>Though fuzzy logic has been applied to many fields, from control theory to artificial intelligence. </li></ul><ul><li>It still remains controversial among most statisticians, who prefer Bayesian logic, and some control engineers, who prefer traditional two-valued logic. </li></ul>Company Logo
28. 28. Thank you !