Paradigm Problems A Case Study on rebalance
summary
A classroom assignment asks to rebalance a binary search tree in Rust and reveals specific failure modes: students repeatedly hit ownership and borrowing hurdles when trying to return a reference instead of moving a node, resorting to heavy use of mem::replace and juggling Box<T> and Option<T> types. Multiple students spend up to eight hours on the problem, many submissions never pass tests, and automated tools like Copilot produce ill-typed or incorrect code instead of a working in-place rebalancer.
AI-written summary · about
