A cognitive maze was developed to study perceptual and conceptual processes in the discovery of relationships through inductive inference and flexible shifting of mental sets adaptive to changed problems. For example, the experimenter-tester presents a list of digits in consecutive pairs; subject-testee is asked to select one digit from each pair and tester answers “right” or “wrong” according to whether the choice agrees or disagrees with the hidden principle fixed for that particular problem. After reaching criterion, the principle is stated explicitly, and a new problem involving a different principle (odd or even number, high or low value, simple or double alternation) is presented. In two pilot studies, numbers of trials and errors to criterion correlated strongly with scores on WAIS Arithmetic., Digit Span, and Block Design for a randomly selected heterogeneous group of 10 testees and with course grades for 25 college students. This maze can be administered and scored by computer. Applications are many.