# The Serial On-Ramp to the Multicore Highway: Preparing to Parallelize Code

This article discusses how coding and optimization on-the-fly are opposed and how performance experts approach performance improvement. It explains how they systematically prepare their code for optimization and how the optimization process is done.
• Sviluppatori
• Linux*
• Microsoft Windows* (XP, Vista, 7)
• Sviluppo di videogame
• Principiante
• Intel® Parallel Composer
• Intel Inspector XE
• Intel® Parallel Studio
• Intel® Parallel Studio XE
• Intel® Parallel Advisor
• Intel® Parallel Amplifier
• Intel® VTune™ Amplifier XE
• Intel® Inspector XE
• Intel® Parallel Inspector
• parallelization
• performance optimization
• performance
• visual computing
• hot spot
• Sviluppo di videogame
• Grafica
• Ottimizzazione
• Elaborazione parallela

# Designing Artificial Intelligence for Games (Part 4)

The gaming industry has seen great strides in game complexity recently. Game developers are challenged to create increasingly compelling games. This series explores important Artificial Intelligence (AI) concepts and how to optimize them for multi-core.
• Sviluppatori
• Sviluppo di videogame
• Avanzato
• Principiante
• Intermedio
• Intel® VTune™ Amplifier XE
• ai
• Artificial intelligence
• artificial intelligence engine
• parallelization
• parallel
• Sviluppo di videogame
• Grafica
• Elaborazione parallela
• # Parallelization And Optimization of The Line Segment Intersection Problem

<!--[endif]--><!--[if gte mso 9]> Normal 0 false false false MicrosoftInternetExplorer4 <![endif]--><!--[if gte mso 9]> <![endif]--> <!--[endif]--><!--[if gte mso 9]> <![endif]--><!--[if gte mso 9]> <![endif]-->

Line Segment Intersection Problem

1. Problem Statement

Write a threaded code to find pairs of input line segments that intersect within three-dimensional space. Line segments are defined by 6 integers representing the two (x,y,z) endpoints.