Kev tshawb nrhiav boolean yog dab tsi?

Cov txheej txheem:

Kev tshawb nrhiav boolean yog dab tsi?
Kev tshawb nrhiav boolean yog dab tsi?

Video: Kev tshawb nrhiav boolean yog dab tsi?

Video: Kev tshawb nrhiav boolean yog dab tsi?
Video: Vim kev pluag thiaj swb koj rau luag. 10/31/2017 2024, Kaum ib hlis
Anonim

Hauv computer science, Boolean qhia yog ib qho kev qhia siv hauv cov lus programming uas ua rau tus nqi Boolean thaum ntsuas. Tus nqi Boolean yog qhov tseeb lossis tsis tseeb.

piv txwv ntawm kev tshawb nrhiav Boolean yog dab tsi?

Boolean search yog ib hom kev tshawb fawb uas tso cai rau cov neeg siv los sib txuas cov ntsiab lus nrog cov neeg ua haujlwm (lossis hloov kho) xws li THIAB, TSIS TAU thiab LOSSIS txhawm rau tsim cov txiaj ntsig zoo dua. Piv txwv li, kev tshawb nrhiav Boolean tuaj yeem yog " tsev so" THIAB "New York" Qhov no yuav txwv qhov kev tshawb nrhiav tsuas yog cov ntaub ntawv uas muaj ob lo lus tseem ceeb.

Boolean nrhiav txhais li cas?

Boolean searching yog tsim los ntawm ib txoj hauv kev ntawm cov cim logic tsim los ntawm George Boole, tus kws lej Askiv xyoo pua 19th. Kev tshawb nrhiav Boolean tso cai koj los ua ke cov lus thiab kab lus uas siv cov lus THIAB, LOSSIS, TSIS(paub tias yog Boolean tus tswv) txwv, nthuav dav, lossis txhais koj qhov kev tshawb nrhiav.

Kev tshawb nrhiav Boolean yog dab tsi?

Boolean tus tswv yog siv los ua ke cov tswv yim lossis cov tswv yim thaum tshawb nrhiavPeb tus tswv Boolean koj yuav siv hauv kev tshawb nrhiav yog THIAB, LOSSIS, thiab qee zaus, TSIS TAU. … Hauv kev tshawb nrhiav feem ntau koj yuav siv kev sib koom ua ke ntawm cov neeg ua haujlwm no txhawm rau nqaim lossis nthuav dav koj cov txiaj ntsig raws li xav tau.

Koj ua qhov kev tshawb nrhiav Boolean li cas?

Kev tshawb nrhiav Boolean xav tau cov hauv qab no:

  1. Nkag mus rau cov ntsiab lus xav tau hauv cov lus hais.
  2. Siv cov lus tshawb nrhiav Boolean uas tsim nyog los ntawm cov npe hauv qab no ntawm cov ntsiab lus.
  3. Xaiv Boolean raws li hom lus tseem ceeb xaiv. (Thaum tag nrho cov kev xav tau tau ua tiav, nyem Tshawb nrhiav los tsim cov ntawv tshaj tawm.)

Pom zoo: