Showing posts with label crisp logic. Show all posts
Showing posts with label crisp logic. Show all posts

MAGIC(MATH) in C - CRACK IT IF YOU CAN!!!

Hi friends,

When I was doing my C language course... My instructor shown a small magic and asked us to find the logic behind it... I and my friends took one day to crack it...
Do you wanna know... what is that magic???
Would you like to crack it???
Could you crack it???
Ok here is the link for that .exe file... Download it and command the answer IF YOU CAN...

DOWNLOAD(.ZIP)

(Friends, the above link will open the MEGAUPLOAD site... you need to wait for 30 to 40 sec and then click on the regular download..and then you can download the zip file..you need to extract the zip to get the exe file- this is because i cannot upload or link the exe file directly from my system)..

ANSWER:
It’s been a week; I didn't receive any response... So here is solution...

Whatever may be the number... When you add the digits and subtract it from the number... the result will be multiples of 9... So each time, I gave the same symbol for the all multiples of 9... so your symbol has to be, the symbol which I gave for those multiples of 9…

And here is the source code…

SOURCE CODE

FUZZY LOGIC

Hi friends,
One of my junior asked me about FUZZY LOGIC.. so i learned about it.. i would like to share it with you all..
so it is..

FUZZY LOGIC
if you ask me for the definition.. i would say as it is given in the Wikipedia..
"Fuzzy logic is a form of many-valued logic derived from fuzzy set theory to deal with reasoning that is robust and approximate rather than brittle and exact."
but if you ask me to explain.. i would be saying as below..

if someone is asked to write coding for controlling the fan switch.. probably the algorithm would be as
=>IF temperature IS HOT, switch ON the fan.. ELSE, switch OFF the fan..
this is crisp logic.. binary logic.. the term hot is considered as TRUE(1) and the rest considered as FALSE(0)..so when the sensor gives certain value nearer to hot and more than the median.. it will be considered as TRUE(1)..

But in the case of FUZZY LOGIC.. there are many values are given between the TRUE and FALSE..
if we are writing the same program in FUZZY LOGIC.. the coding would be..
=>IF temperature IS very cold THEN stop fan
=>IF temperature IS cold THEN turn down fan
=>IF temperature IS normal THEN maintain level
=>IF temperature IS hot THEN speed up fan
Thus the TRUE (1) and the FALSE(0) as many values between them.. fuzzy works on IF... THEN.. rather than IF.. ELSE..

In case of FUZZY LOGIC, we have ranges between the TRUE and FALSE..

if you ask for another example..
consider a 100ml glass with 30ml water in it.. and someone is asking, is that glass full?..


case i:  if you are saying that glass is empty since the water is less than half of the glass... then this is crisp(binary) logic...

case ii: if  you are saying that glass is 30% full and 70% empty.. then this is FUZZY LOGIC..

the control system designed using this logic is FUZZY CONTROL SYSTEM...

hope i have explained mean for FUZZY LOGIC.. if you have any clarification.. post me.. i will clear it..

Older Posts Home

About Me

My photo
Hi everyone,myself Alagappan...electronic and communication engg. student... living in madurai... interested in everything... want to achieve something great in my lifetime...

Followers


Recent Comments