Abstract:
A network device is provided. The network device includes: a hash memory and a controller. The hash memory has a plurality of hash tables, wherein each hash table includes a plurality of entries, and each entry in each hash table has a signature field, and a key field. The controller is configured to map a search key to a plurality of entries of the hash tables and perform longest prefix matching (LPM) on the search key based on the signature field and the key field of each mapped entry in the mapped hash tables.
Abstract:
An electronic device and an associated method for displaying image data on a first display device of a first electronic device and a second display device of a second electronic device external of the first electronic device are provided. The method includes the steps of: determining whether image data to be displayed on the first and second display devices are the same; when the image data to be displayed on the first and second display devices are the same, estimating the first resource consumption required when the extension mode is selected for displaying the image data and the second resource consumption required when the mirror mode is selected for displaying the image data; and determining to display the image data on the first and second display devices in the extension mode or the mirror mode according to the first and second estimated resource consumption.