## Wednesday, April 1, 2015

### Fuzzy logic

Introduction :
Fuzzy logic is a form of many-valued logic that deals with approximate, rather than fixed and exact reasoning. Compared to traditional binary logic (where variables may take on true or false values), fuzzy logic variables may have a truth value that ranges in degree between 0 and 1. Fuzzy logic has been extended to handle the concept of partial truth, where the truth value may range between completely true and completely false. Furthermore, when linguistic variables are used, these degrees may be managed by specific functions.

Refer Wikipedia : http://en.wikipedia.org/wiki/Fuzzy_logic

CMU course : http://www.cs.cmu.edu/Groups/AI/html/faqs/ai/fuzzy/part1/faq.html

## Tuesday, March 30, 2010

### Lets do Math !! Fun !!

Objective : Finding the number of zeros in factorial(n).
Complexity : Want to calculate it without calculating the factorial.

Concept : We need to count how many 0's we can generate by multiplication of 5 with even number.

Here is the answer : http://www.purplemath.com/modules/factzero.htm
Thanks geeksforgeeks for the coding solution.
http://www.geeksforgeeks.org/count-trailing-zeroes-factorial-number/

In any case, if you have better approach or you want to discuss, post your queries.