Is comparing the brain to a computer scientifically accurate?

It’s a useful metaphor rather than a literal description — the brain doesn’t process information in the same linear, binary way a computer does, but the comparison helps illustrate concepts like input, processing, and output in behavior and thought.

How does the “brain as computer” idea apply to changing habits?

If the brain runs on patterns — like software running on code — then repeated new patterns of thought or behavior can effectively “reprogram” automatic responses over time, which is the basis for techniques like NLP.

Can you really “reprogram” your own thinking?

To a meaningful degree, yes. Repeated, deliberate practice of new thought and behavior patterns can create new automatic responses, though it takes consistency — the same way old patterns became automatic through repetition.