pattern matching

Finding similar structures

Pattern matching is comparing data against a template to find matches or extract components.

In programming, it tests whether a value fits a particular structure: The function uses pattern matching to handle different input types.

In cognitive contexts, it describes recognizing familiar forms—faces, melodies, chess positions.

The term spans computer science, linguistics, and psychology, but always involves checking whether something fits an expected shape.

Related

algorithm · capture · quantifiers · alternation · anchors · unification · wildcards · lookahead · text processing · data extraction · semantic analysis · search · identify · tokenization · similarity · detect · scan · template

Categories
Opposites
cognitive method

pattern matchingtrial and error

Learning through repeated attempts

brute force · random selection · guesswork · stab in the dark · random search

basis for decision-making

pattern matchingrandom selection

Choosing without systematic bias

chance · coin flip · shot in the dark · pure luck · guesswork

reasoning style

pattern matchingdeductive reasoning

Deriving specifics from generalities

logical deduction · analytical reasoning

Family

match, pattern, matching, patterned, patterns, patterning, matchmaker, matchmaking, patternless

Familiarity
Top 200,000
Profile
Used worldwide · Timeless · Rated G