About 9,480,000 results
Open links in new tab
  1. Writing algorithm for types of triangle - Stack Overflow

    Oct 15, 2014 · Write an algorithm that reads three integers a, b, c representing the sides of a triangle. Next, print the type of triangle represented (scalene, equilateral, isosceles). Assume a valid triangle is represented.

  2. Basic Algorithm for Types of Triangles - Stack Overflow

    Sep 26, 2016 · The specific triangles are acute scalene, right scalene, obtuse scalene, acute isosceles, right isosceles, obtuse isosceles and an equilateral triangle. We have to write a basic algorithm in pseudocode.

  3. Algorithm for Triangles Classification - CodeProject

    Oct 21, 2018 · Triangles are classified depending on relative sizes of their elements. As regards their sides, triangles may be: Scalene (all sides are different) Isosceles (two sides are equal) Equilateral (all three sides are equal) And as regards their angles, triangles may be: Acute (all angles are acute) Right (one angle is right) Obtuse (one angle is ...

  4. Program to Print Pascal's Triangle - GeeksforGeeks

    Feb 18, 2025 · Pascal’s triangle is a triangular array of binomial coefficients. Examples: Example1: The below image shows the Pascal’s Triangle for n=4. Example2: The below image shows the Pascal’s Triangle for n = 6. The number of …

  5. Triangles algorithm - Stack Overflow

    Nov 14, 2017 · The main algorithm. You can do a first pass to compute all unit sized triangles (having exactly 1 -inside). Maintain a table where T[x,y] is the size of the triangle (length of its sides). In this pass you initialize every cell with a -to 1. Then you can go from top to bottom and try to build more complex triangles.

  6. Boundary Value Analysis – Triangle Problem - GeeksforGeeks

    Feb 8, 2023 · One of the common problem for Test Case Design using BVA is the Triangle Problem that is discussed below –. Triangle Problem accepts three integers – a, b, c as three sides of the triangle .We also define a range for the sides of the triangle as [l, r] where l>0.

  7. Geometric Algorithms - GeeksforGeeks

    Aug 23, 2024 · These algorithms are used to solve various geometric problems such as computing the area of a polygon, finding the intersection of geometric shapes, determining the convex hull of a set of points, and many other tasks related to …

  8. Here a \triangle" is a set of three vertices that are mutually adjacent in G. Given a graph G = (V; E), for every v 2 V , how many triangles in G include vertex v? The algorithms we'll discuss e ectively solve both of these problems at the same time.

  9. Given a graph G = (V; E), nd if G has a triangle. (mn) using the following trivial approach. for every e = (u; v) 2 E Check if the adjacency lists of u and v have a common element w. If such a w exists, output fu; v; wg. Output \No triangle Found" a hash table or even a direct access table. For a dense graph, this algorithm runs in time (n3).

  10. Understanding ImageJ implementation of the triangle algorithm

    Feb 1, 2016 · My understanding of the references is that the histogram is enclosed in a right triangle between the maximum peak and the end of the histogram bins. The objective is to find the histogram bin with the greatest distance between its top and the hypotenuse of the triangle, in a line perpendicular to the hypotenuse.

  11. Some results have been removed
Refresh