MediaTek Inc. shares posted their best week since 2002, as artificial intelligence advances at its client Google help reshape the growth outlook for the Taiwanese chipmaker.