Clustering yana nufin tsarin haɗa abubuwa iri ɗaya ko wuraren bayanai tare bisa wasu sharuɗɗa, kamar kusancinsu ko kamanceceniyarsu. A cikin ilimin kimiyyar kwamfuta da koyan na'ura, ana yawan amfani da tari azaman dabara don tantance bayanai, haƙar ma'adinan bayanai, da kuma gano ƙirar ƙira. Algorithms na tari suna ƙoƙarin gano ƙira ko tsari a cikin bayanai ta hanyar rarraba su zuwa ƙungiyoyi, ko gungu, waɗanda ke da halaye iri ɗaya ko kaddarorin. Manufar ita ce haɓaka kamanceceniya tsakanin abubuwa a cikin gungu yayin rage kamance tsakanin abubuwa a cikin gungu daban-daban.