Virtually all of the consumed memory is from the reference frames, so it depends on how big your video is. AV1 supports up to 8 reference frames, though if you're memory constrained you could use less.
Different encoders produce different outputs, the algorithm isn't specified.
Different encoders produce different outputs, the algorithm isn't specified.