LUT algorithm and data structure--random walking problem and campus guide consultation