Some Efficient Algorothms/Codes