å°ä¸¤ä¸ªå¼åäºä¸ç¸äº¤çåºåå并åªéç®åçå并两个åºåã
æ以æ们åªéå°ä¸ä¸ªåºååæ两个å¼åä¸ç¸äº¤çé¨åç¶ååå«æåºåå并就è½è§£å³æåºçé®é¢ã
为äºå°åºååæå¼åä¸ç¸äº¤ç两é¨åï¼å¯ä»¥éåä¸ä¸ªå¼ï¼å°å°äºçäºå®çè§ä½ä¸ä¸ªåºåï¼å¤§äºå®çè§ä½å¦ä¸ä¸ªåºåå³å¯ã
è¿å°±æ¯å¿«éæåºè¡¨çåºç¡ææ³
å¦å¾æ示ï¼å¯¹äºä¸ä¸ªåºåå¯ä»¥è¿è¡å¿«éæåº
伪代ç å¦ä¸
algorithm quicksort(A, lo, hi) is