Variants of local algorithms on sparse graphs