How to add more option to an attribute programmatically in magento

If you have a attribute available (In Magento Admin) and the data type of that attribut is drop down type. Suppose you get the huge values that needs to be entered as a option value for your magento attribute. Then you have two ways to add those values i) Add them manually ii) Add those(…)