How does research work in CS?

There’s no lab per se or is there? How do you work as an undergraduate researcher? What do they do? Think about better algorithms?