×
Home Discussions Write at Opengenus IQ
×
  • Home
  • Write at OpenGenus IQ
  • Machine Learning
  • Algorithms
  • Discussions

branch prediction

A collection of 1 post

software engineering

Branch prediction explained with a code example

Branch prediction is an optimization technique which predicts the path a code will take before it is known for sure. We have explained the concept with a C++ example of branch prediction where a condition statement runs slower in case of unsorted data compared to sorted data.

OpenGenus Foundation OpenGenus Foundation
×

Visit our discussion forum to ask any question and join our community

View Forum
OpenGenus IQ © 2019 All rights reserved ™
Top Posts Twitter