If you need to assign a product to a few categories (like root, parent categories and sub-categories) , you should disable showing categories as tree. Navigate to System > Configuration > Mass Product Actions > Show Categories as Tree > No:
Now you can indicate the IDs of the categories you need to assign your products to:
See more details on Mass Product Actions page
Login and Registration Form