Forgot pattern of android mobile, How to recover it

I forget my android mobiles pattern and now I am unable to unlock it please help in unlocking it, I do not want to reset it or upgrade it.
As it contained many contacts and other useful information, can the data be accessed without unlocking it?
I am using Samsung galaxy R.
Waiting for your response.
