Samsung Electronics Co is counting on a gradual recovery in memory chip demand from data centers and 5G smartphone makers to help it bounce back in 2020 after sliding to its worst operating profit in four years.