Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; plgContentJComments has a deprecated constructor in /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php on line 25 Call Stack: 0.0001 360720 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.1214 1209368 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.1214 1209368 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.2310 4102376 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.2324 4129888 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.2331 4147600 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.2331 4164608 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.2340 4172344 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.2340 4172344 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.3137 4407976 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.3152 4425376 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.3157 4446304 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.3249 4508880 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.3249 4509136 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182 Deprecated: Methods with the same name as their class will not be constructors in a future version of PHP; JCommentsACL has a deprecated constructor in /var/www/astarmathsandphysics/components/com_jcomments/classes/acl.php on line 17 Call Stack: 0.0001 360720 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.1214 1209368 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.1214 1209368 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.2310 4102376 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.2324 4129888 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.2331 4147600 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.2331 4164608 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.2340 4172344 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.2340 4172344 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.3137 4407976 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.3152 4425376 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.3157 4446304 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.5544 12299680 13. JEventDispatcher->trigger() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:199 0.5546 12300128 14. plgContentJComments->update() /var/www/astarmathsandphysics/libraries/joomla/event/dispatcher.php:160 0.5547 12300128 15. plgContentJComments->onContentAfterDisplay() /var/www/astarmathsandphysics/libraries/joomla/event/event.php:70 0.5549 12308376 16. plgContentJComments->onAfterDisplayContent() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:339 0.5551 12310112 17. JComments::show() /var/www/astarmathsandphysics/plugins/content/jcomments/jcomments.php:282 0.5558 12343160 18. JCommentsFactory::getACL() /var/www/astarmathsandphysics/components/com_jcomments/jcomments.php:188 0.5558 12343560 19. spl_autoload_call() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274 0.5559 12343640 20. JLoader::load() /var/www/astarmathsandphysics/components/com_jcomments/classes/factory.php:274

Combinations and Permutations

This topic deals with the numbers of ways ways we can pick a selection from a number of possible combinations. For instance, suppose we have 10 people lined up and we have to pick a team of 4.

The number of ways we can pick 4 from 10 is writtenor

Working from first principles we can pick the first from 10, the second from 9, the third from 8, the fourth from 7, hence 10*9*8*7=5040. But the order of the picking will not matter here. The four people can be picked in any order and we have not taken account of this. To take account of this objection we notice that 4 people can be arranged in 4*3*2*1=4!=24 ways, so now we divide 5040 by 24 to get 210.

The order did not matter for the above question, but sometimes the order does matter, For example 10 runners in a race will obviously differentiate between first, second and third place. In this case we finddifferent possibilities.

Sometimes we have combinations of combinations. Suppose we have 6 men and 5 women. We have to form from these a team of 4 men and 3 women. We can pick the four men indifferent ways and the 3 women in different ways. The choices of men and women are completely independent. INDEPENDENT! That should ring a bell. If probabilities are independent we multiply, and so with combinations. Hence the number of ways in which we can pick four men and three women from 6 men and five women is

Sometimes though, we have to write down list of possible arrangements because not every arrangement is acceptable.

Suppose a committee of 5 people is to be selected from 6 men and 4 women. We are required to find the number of selections which has more men than women.

We could have 5 men and no women:possible choices.

We could have 4 men and 1 woman:possible choices.

We could have 3 men and 2 woman:possible choices.

Hence there are 6+60+120 possibilities.

Add comment

Security code
Refresh