One embodiment of the invention relates to communications and computer systems, especially networked routers and computers, packet switching systems, and other devices; and more particularly, one embodiment relates to partitioning and filtering a search space of particular use for determining a longest prefix match thereon, such as for routing packets.