Chosen Solution

my laptop shows samsung logo for few seconds then switches off and automatically restarts by its self and does the same thing over and over again

It is trying to boot from the CD when it is not bootable. Try changing the boot sequence and see if this works. Hope that works!