Dab tsi yog Kev Tshawb Nrhiav Boolean?

Cov txheej txheem:

Dab tsi yog Kev Tshawb Nrhiav Boolean?
Dab tsi yog Kev Tshawb Nrhiav Boolean?
Anonim

Kev tshawb nrhiav Boolean, hauv cov ntsiab lus ntawm kev tshawb nrhiav, yog hom kev tshawb fawb uas koj tuaj yeem siv cov lus tshwj xeeb lossis cov cim los txwv, nthuav dav, lossis txhais koj qhov kev tshawb nrhiav.

Qhov no tuaj yeem ua tau los ntawm cov neeg ua haujlwm Boolean xws li AND, OR, NOT, thiab NEAR, as well as the symbols + (ntxiv) thiab - (rho tawm).

Thaum koj suav nrog tus neeg teb xov tooj hauv kev tshawb nrhiav Boolean, koj tab tom qhia kev hloov pauv kom tau txais ntau yam txiaj ntsig, lossis koj tab tom txhais cov kev txwv kom txo cov txiaj ntsig tsis sib xws.

Image
Image

Cov kev tshawb nrhiav nrov tshaj plaws txhawb cov neeg ua haujlwm Boolean, tab sis cov cuab yeej tshawb nrhiav yooj yim koj yuav pom hauv lub vev xaib tej zaum tsis yog.

Boolean Meaning

George Boole, tus kws lej Askiv los ntawm lub xyoo pua 19th, tau tsim ib txoj hauv kev algebraic uas nws tau piav qhia thawj zaug hauv nws phau ntawv xyoo 1847, Kev Tshawb Fawb Txog Kev Ua lej ntawm Logic thiab tau piav qhia hauv nws Kev Tshawb Fawb Txog Kev Cai Lij Choj ntawm Kev Xav (1854).

Boolean algebra yog qhov tseem ceeb rau kev suav niaj hnub, thiab txhua yam lus tseem ceeb suav nrog nws. Nws tseem suav nrog ntau txoj hauv kev txheeb cais thiab teeb tsa txoj kev xav.

Hnub no cov ntaub ntawv tshawb fawb feem ntau yog ua raws li Boolean logic, uas tso cai rau peb los qhia meej qhov tsis meej-piv txwv li, sib txuas cov ntsiab lus kom suav nrog thaum tsis suav nrog lwm tus. Muab hais tias Is Taws Nem zoo ib yam li cov ntaub ntawv khaws cia loj heev, Boolean cov ntsiab lus siv ntawm no thiab.

Boolean Search Operators

Rau lub hom phiaj ntawm kev tshawb nrhiav lub vev xaib Boolean, cov no yog cov ntsiab lus thiab cov cim koj yuav tsum paub:

Boolean Operator Symbol piav qhia Example
AND + Txhua lo lus yuav tsum muaj nyob hauv cov txiaj ntsig football AND nfl
OR Cov txiaj ntsig tuaj yeem suav nrog ib qho ntawm cov lus paleo OR primal
tsis - Cov txiaj ntsig suav nrog txhua yam tab sis lub sijhawm ua raws tus neeg teb xov tooj Nyob tsis tau vegan
NEAR Cov lus tshawb nrhiav yuav tsum tshwm sim hauv qee cov lus ntawm ib leeg swedish NEAR Minister

Feem ntau cov kev tshawb fawb ua ntej siv OR Boolean tus neeg teb xov tooj, txhais tau tias koj tuaj yeem ntaus ib pawg lus thiab nws yuav tshawb nrhiav ib qho ntawm lawv, tab sis tsis tas txhua tus ntawm lawv.

Tsis yog txhua lub tshuab tshawb nrhiav txhawb cov neeg ua haujlwm Boolean no. Piv txwv li, Google nkag siab - tab sis tsis txhawb NOT. Kawm paub ntau ntxiv txog kev tshawb nrhiav Boolean hauv Google rau kev pab.

Vim li cas Kev Tshawb Nrhiav Boolean thiaj pab tau

Thaum koj ua qhov kev tshawb fawb tsis tu ncua, xws li dog yog tias koj tab tom nrhiav cov duab ntawm dev, koj yuav tau txais cov txiaj ntsig loj heev, tejzaum nws yog ntau lab. Kev tshawb nrhiav Boolean yuav tau txais txiaj ntsig ntawm no yog tias koj tab tom nrhiav rau ib hom dev tshwj xeeb lossis yog tias koj tsis xav pom cov duab rau ib hom dev.

Tsis txhob cia li sifting los ntawm tag nrho cov duab dev, koj tuaj yeem siv tus neeg teb xov tooj TSIS cais cov duab poodles lossis boxers.

Kev tshawb nrhiav Boolean yog qhov muaj txiaj ntsig tshwj xeeb tom qab khiav qhov kev tshawb nrhiav thawj zaug. Piv txwv li, yog tias koj khiav qhov kev tshawb nrhiav uas rov qab tau ntau qhov txiaj ntsig uas cuam tshuam rau cov lus koj tau nkag mus tab sis tsis muaj kev cuam tshuam qhov koj tab tom nrhiav, koj tuaj yeem pib qhia Boolean cov tswv lag luam kom tshem tawm qee cov txiaj ntsig thiab ntxiv cov lus tshwj xeeb.

Yuav rov qab mus rau tus dev piv txwv, xav txog qhov no: koj pom ntau cov duab dog dig, yog li koj ntxiv +park pom dev hauv cov tiaj ua si. Tej zaum cov txiaj ntsig ntau lab tam sim no tau raug txiav mus rau ntau lab. Tam sim no koj xav tshem tawm cov txiaj ntsig uas muaj dej, yog li koj suav nrog - water Tam sim ntawd, qhov kev tshawb nrhiav lub vev xaib no tau tso cai rau koj txiav cov txiaj ntsig suav tsis txheeb uas koj tsis xav pom.

Ntau Boolean Search Piv txwv

Hauv qab no yog qee qhov piv txwv ntxiv ntawm Boolean tus tswv. Nco ntsoov tias koj tuaj yeem sib xyaw ua ke thiab siv lwm txoj kev tshawb nrhiav qib siab xws li cov lus hais los txhais cov lus.

Boolean tus tswv yuav tsum muaj nyob rau hauv tag nrho cov tsiaj ntawv loj rau kev tshawb fawb cav kom nkag siab lawv ua tus neeg teb xov tooj thiab tsis yog lo lus tsis tu ncua.

AND

Ntawm no yog yuav ua li cas thiaj nrhiav tau kev ua si dawb los ntawm suav nrog ob lo lus:


free THIAB games

Qhov no yog ib qho tshawb nrhiav video tham apps uas tuaj yeem khiav ntawm ob lub Windows thiab iOS no:


"video chat app" iOS AND Windows

OR

Tshawb nrhiav qhov no txhawm rau nrhiav cov tsev qhib uas qhib ib hnub:


"qhib tsev" hnub Saturday OR sunday

Yog koj tsis paub meej tias tsab xov xwm yuav hais li cas, koj tuaj yeem sim tshawb nrhiav zoo li no kom npog ob lo lus:


"web browser zoo tshaj" macOS OR Mac

tsis

Nrhiav cov yeeb yaj kiab hais txog 2022, tab sis tsis suav nrog txhua nplooj ntawv uas muaj lo lus comedy:


2022 movies -comedy

Nrhiav cov nplooj ntawv web txog cov zaub mov txawv, tab sis nco ntsoov tsis muaj leej twg suav nrog cov lus "ntxiv qab zib":


"paleo recipes" -"ntxiv qab zib"

Pom zoo: