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 362560 1. {main}() /var/www/astarmathsandphysics/index.php:0 0.1158 1211984 2. Joomla\CMS\Application\SiteApplication->execute() /var/www/astarmathsandphysics/index.php:49 0.1158 1211984 3. Joomla\CMS\Application\SiteApplication->doExecute() /var/www/astarmathsandphysics/libraries/src/Application/CMSApplication.php:267 0.1880 4040104 4. Joomla\CMS\Application\SiteApplication->dispatch() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:233 0.1893 4067832 5. Joomla\CMS\Component\ComponentHelper::renderComponent() /var/www/astarmathsandphysics/libraries/src/Application/SiteApplication.php:194 0.1901 4085544 6. Joomla\CMS\Component\ComponentHelper::executeComponent() /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:356 0.1901 4102552 7. require_once('/var/www/astarmathsandphysics/components/com_content/content.php') /var/www/astarmathsandphysics/libraries/src/Component/ComponentHelper.php:381 0.1909 4110288 8. ContentController->execute() /var/www/astarmathsandphysics/components/com_content/content.php:42 0.1909 4110288 9. ContentController->display() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:710 0.2325 4336944 10. ContentController->display() /var/www/astarmathsandphysics/components/com_content/controller.php:113 0.2339 4354344 11. Joomla\CMS\Cache\Controller\ViewController->get() /var/www/astarmathsandphysics/libraries/src/MVC/Controller/BaseController.php:663 0.2344 4375272 12. ContentViewArticle->display() /var/www/astarmathsandphysics/libraries/src/Cache/Controller/ViewController.php:102 0.2427 4440296 13. Joomla\CMS\Plugin\PluginHelper::importPlugin() /var/www/astarmathsandphysics/components/com_content/views/article/view.html.php:189 0.2427 4440552 14. Joomla\CMS\Plugin\PluginHelper::import() /var/www/astarmathsandphysics/libraries/src/Plugin/PluginHelper.php:182

Counting Paths

When there are multipl paths from one town to another, with intermediate towns each being connected to another town by a path, we can find the total number of possible paths by using the product principle along each path.

To find the number of routes from P to Q,

Apply the product principle along PADQ:1*2*1=2

Apply the product principle along PBEGQ:1*3*2*1=6

Apply the product principle along PCFQ:1*3*1=3

The total number of paths from P to Q is 2+6+3=11